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 +});