Skip to content

Commit

Permalink
Merge pull request #2 from iamstolis/patch-1
Browse files Browse the repository at this point in the history
Fixing "just now" test
  • Loading branch information
sebastiansandqvist committed Sep 21, 2017
2 parents ec439e0 + 075d0c0 commit 2486786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -112,4 +112,4 @@ describe('ago', function() {
expect(ago(years4)).to.equal('100000 years ago');
});

});
});

0 comments on commit 2486786

Please sign in to comment.