Skip to content

Commit

Permalink
"polyfill" deepStrictEqual on Node 0.12 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed May 1, 2019
1 parent 1ef3b53 commit df78840
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/node/index.js
@@ -1,6 +1,7 @@
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 @@ -11,6 +12,11 @@ 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

0 comments on commit df78840

Please sign in to comment.