From 07a89541f593aaa064c7fe380b4565ee6364fd06 Mon Sep 17 00:00:00 2001 From: King Date: Sat, 10 Feb 2018 09:26:17 -0500 Subject: [PATCH] fix broken test in tomorrow.test.js --- test/tomorrow/tomorrow.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tomorrow/tomorrow.test.js b/test/tomorrow/tomorrow.test.js index a9f77a544..a6e6dc9bc 100644 --- a/test/tomorrow/tomorrow.test.js +++ b/test/tomorrow/tomorrow.test.js @@ -5,7 +5,7 @@ test('Testing tomorrow', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof tomorrow === 'function', 'tomorrow is a Function'); - const t1 = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1); + const t1 = new Date(); const t2 = new Date(tomorrow()); t.equal(t1.getFullYear(), t2.getFullYear(), 'Returns the correct year'); t.equal(t1.getMonth(), t2.getMonth(), 'Returns the correct month');