Skip to content

Commit

Permalink
[Tests] Stop equal Dates from being flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood authored and ljharb committed Sep 10, 2023
1 parent 7c907d6 commit b5a9d3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/equal.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ var deepEqual = require('./lib/deep_equal');
test('deepDates', function (t) {
t.plan(2);

var now = new Date();
t.ok(
deepEqual(
{ d: new Date(), x: [1, 2, 3] },
{ d: new Date(), x: [1, 2, 3] }
{ d: new Date(now), x: [1, 2, 3] },
{ d: new Date(now), x: [1, 2, 3] }
),
'dates should be equal'
);
Expand Down

0 comments on commit b5a9d3a

Please sign in to comment.