Skip to content

Commit

Permalink
node 0.12 has no deepStrictEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Feb 27, 2021
1 parent 6adca6c commit cfa2d6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/events-once.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ function onceWithEventTargetTwoArgs() {
et.dispatchEvent('myevent', 42, 24);
});
return once(et, 'myevent').then(function (value) {
assert.deepStrictEqual(value, [42, 24]);
assert.strictEqual(value[0], 42);
assert.strictEqual(value[1], 24);
});
}

Expand All @@ -170,7 +171,7 @@ function onceWithEventTargetError() {
});
return once(et, 'error').then(function (args) {
var error = args[0];
assert.deepStrictEqual(error, expected);
assert.strictEqual(error, expected);
assert.strictEqual(has(et.events, 'error'), false);
});
}
Expand Down

0 comments on commit cfa2d6f

Please sign in to comment.