Skip to content

Commit

Permalink
tests run in child processes
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed May 1, 2019
1 parent df78840 commit 9938769
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/node/index.js
@@ -1,7 +1,6 @@
var spawn = require('child_process').spawn;
var path = require('path');
var series = require('run-series');
var assert = require('assert');

function test(filename) {
return function(cb) {
Expand All @@ -12,11 +11,6 @@ function test(filename) {
};
}

// "polyfill" deepStrictEqual on Node 0.12 and below
if (!assert.deepStrictEqual) {
assert.deepStrictEqual = assert.strictEqual;
}

series([
test(require.resolve('./debug')),
test(require.resolve('./format')),
Expand Down
5 changes: 5 additions & 0 deletions test/node/types.js
Expand Up @@ -19,6 +19,11 @@ var vm = require('vm');
var Buffer = require('safe-buffer').Buffer
var objectEntries = require('object.entries');

// "polyfill" deepStrictEqual on Node 0.12 and below
if (!assert.deepStrictEqual) {
assert.deepStrictEqual = assert.strictEqual;
}

function uncurryThis(f) {
return f.call.bind(f);
}
Expand Down

0 comments on commit 9938769

Please sign in to comment.