From 075d0c0aa2f149cf52db0024c244d074e228df00 Mon Sep 17 00:00:00 2001 From: Jan Stola Date: Wed, 20 Sep 2017 17:16:15 +0200 Subject: [PATCH] Fixing "just now" test --- test/spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec.js b/test/spec.js index a20f309..b5ddeaa 100644 --- a/test/spec.js +++ b/test/spec.js @@ -11,7 +11,7 @@ describe('ago', function() { it('should return "just now" if under 1 minute', function() { expect(ago(timestamp)).to.equal('just now'); - expect(ago(new Date(timestamp + 10000))).to.equal('just now'); + expect(ago(new Date(+timestamp + 10000))).to.equal('just now'); }); it('minute', function() { @@ -112,4 +112,4 @@ describe('ago', function() { expect(ago(years4)).to.equal('100000 years ago'); }); -}); \ No newline at end of file +});