From b5a9d3a20ab64a3231b3ef5ac63b92f078d52946 Mon Sep 17 00:00:00 2001 From: Sebastian Good <2230835+scagood@users.noreply.github.com> Date: Sun, 10 Sep 2023 22:57:46 +0300 Subject: [PATCH] [Tests] Stop equal Dates from being flaky --- test/equal.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/equal.js b/test/equal.js index 3413143..d42cb5e 100644 --- a/test/equal.js +++ b/test/equal.js @@ -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' );