From d4269e89344c112e542b72ba2b3c1237080accbe Mon Sep 17 00:00:00 2001 From: DarrenPaulWright Date: Sat, 8 May 2021 20:33:19 -0500 Subject: [PATCH] Fix date tests. --- tests/helpers/data-types.js | 2 +- tests/on-change.dates.test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/helpers/data-types.js b/tests/helpers/data-types.js index e2f513b..2348595 100644 --- a/tests/helpers/data-types.js +++ b/tests/helpers/data-types.js @@ -47,7 +47,7 @@ const strings = [ ]; const dates = [ - new Date('1/1/2001') + new Date('2001-01-01T06:00:00.000Z') ]; const sets = [ diff --git a/tests/on-change.dates.test.js b/tests/on-change.dates.test.js index d7427ad..4b9fad5 100644 --- a/tests/on-change.dates.test.js +++ b/tests/on-change.dates.test.js @@ -21,7 +21,7 @@ test('dates', t => { verify(2, proxy, 'a', date, clone, { name: 'setSeconds', args: [32], - result: 978328832000 + result: date.valueOf() }); clone = new Date(date); @@ -29,14 +29,14 @@ test('dates', t => { verify(3, proxy, 'a', date, clone, { name: 'setHours', args: [5], - result: 978346832000 + result: date.valueOf() }); proxy.a.setHours(5); verify(3, proxy, 'a', date, clone, { name: 'setHours', args: [5], - result: 978346832000 + result: date.valueOf() }); }); });