Skip to content

Commit ab4fc9c

Browse files
authored
Add node v12 to .travis.yml (#410)
* Add node v12 to .travis.yml * Updated to Node v10.15.3 * Remove error checks
1 parent 32c167d commit ab4fc9c

File tree

113 files changed

+546
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+546
-116
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ matrix:
1212
env: CMD=test
1313
- node_js: 10
1414
env: CMD=test
15+
- node_js: 12
16+
env: CMD=test
1517
- node_js: stable
1618
env: CMD=test-browsers
1719
addons:

build/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function processTestFile (file) {
107107
if (testReplace[file])
108108
replacements = replacements.concat(testReplace[file])
109109

110-
processFile(url, out, replacements, ';require(\'tap\').pass(\'sync run\');var _list = process.listeners(\'uncaughtException\'); process.removeAllListeners(\'uncaughtException\'); _list.pop(); _list.forEach((e) => process.on(\'uncaughtException\', e));')
110+
processFile(url, out, replacements, ';(function () { var t = require(\'tap\'); t.pass(\'sync run\'); })();var _list = process.listeners(\'uncaughtException\'); process.removeAllListeners(\'uncaughtException\'); _list.pop(); _list.forEach((e) => process.on(\'uncaughtException\', e));')
111111
}
112112

113113
//--------------------------------------------------------------------

build/test-replacements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ module.exports['common.js'] = [
116116
+ ' knownGlobals.push(DTRACE_NET_SOCKET_WRITE);\n'
117117
+ ' if (global.__coverage__)\n'
118118
+ ' knownGlobals.push(__coverage__);\n'
119-
+ '\'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,asap,Observable,regeneratorRuntime,_babelPolyfill\'.split(\',\').filter(function (item) { return typeof global[item] !== undefined}).forEach(function (item) {knownGlobals.push(global[item])})'
119+
+ '\'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,queueMicrotask,asap,Observable,regeneratorRuntime,_babelPolyfill\'.split(\',\').filter(function (item) { return typeof global[item] !== undefined}).forEach(function (item) {knownGlobals.push(global[item])})'
120120
+ ' /*</replacement>*/\n\n$1'
121121
]
122122

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"nyc": "^11.0.0",
2828
"pump": "^3.0.0",
2929
"rimraf": "^2.6.2",
30-
"tap": "^11.0.0",
30+
"tap": "^12.0.0",
3131
"tape": "^4.9.0",
3232
"tar-fs": "^1.16.2",
3333
"util-promisify": "^2.1.0"
3434
},
3535
"scripts": {
36-
"test": "tap -j 4 test/parallel/*.js test/ours/*.js",
37-
"ci": "TAP=1 tap test/parallel/*.js test/ours/*.js | tee test.tap",
36+
"test": "tap -J --no-esm test/parallel/*.js test/ours/*.js",
37+
"ci": "TAP=1 tap --no-esm test/parallel/*.js test/ours/*.js | tee test.tap",
3838
"test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js",
3939
"test-browser-local": "airtap --open --local -- test/browser.js",
4040
"cover": "nyc npm test",

test/browser/test-stream-pipeline.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ module.exports = function (t) {
5454
t.throws(function () {
5555
pipeline(_read, function () {
5656
});
57-
}, /ERR_MISSING_ARGS/);
57+
});
5858
t.throws(function () {
5959
pipeline(function () {
6060
});
61-
}, /ERR_MISSING_ARGS/);
61+
});
6262
t.throws(function () {
6363
pipeline();
64-
}, /ERR_MISSING_ARGS/);
64+
});
6565
t.end();
6666
});
6767
t.test('pipeline error', function (t) {

test/common/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ if (typeof constructor == 'function') knownGlobals.push(constructor);
287287
if (typeof DTRACE_NET_SOCKET_READ == 'function') knownGlobals.push(DTRACE_NET_SOCKET_READ);
288288
if (typeof DTRACE_NET_SOCKET_WRITE == 'function') knownGlobals.push(DTRACE_NET_SOCKET_WRITE);
289289
if (global.__coverage__) knownGlobals.push(__coverage__);
290-
'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,asap,Observable,regeneratorRuntime,_babelPolyfill'.split(',').filter(function (item) {
290+
'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,queueMicrotask,asap,Observable,regeneratorRuntime,_babelPolyfill'.split(',').filter(function (item) {
291291
return typeof global[item] !== undefined;
292292
}).forEach(function (item) {
293293
knownGlobals.push(global[item]);

test/parallel/test-stream-backpressure.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ var ws = stream.Writable({
4242
rs.pipe(ws);
4343
;
4444

45-
require('tap').pass('sync run');
45+
(function () {
46+
var t = require('tap');
47+
48+
t.pass('sync run');
49+
})();
4650

4751
var _list = process.listeners('uncaughtException');
4852

test/parallel/test-stream-big-packet.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ function indexOf(xs, x) {
9191

9292
;
9393

94-
require('tap').pass('sync run');
94+
(function () {
95+
var t = require('tap');
96+
97+
t.pass('sync run');
98+
})();
9599

96100
var _list = process.listeners('uncaughtException');
97101

test/parallel/test-stream-big-push.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ r.once('readable', function () {
7878
});
7979
;
8080

81-
require('tap').pass('sync run');
81+
(function () {
82+
var t = require('tap');
83+
84+
t.pass('sync run');
85+
})();
8286

8387
var _list = process.listeners('uncaughtException');
8488

test/parallel/test-stream-buffer-list.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ assert.strictEqual(shifted, buf);
3232
assert.deepStrictEqual(list, new BufferList());
3333
;
3434

35-
require('tap').pass('sync run');
35+
(function () {
36+
var t = require('tap');
37+
38+
t.pass('sync run');
39+
})();
3640

3741
var _list = process.listeners('uncaughtException');
3842

0 commit comments

Comments
 (0)