Skip to content

Commit

Permalink
Fixing "just now" test
Browse files Browse the repository at this point in the history
  • Loading branch information
iamstolis authored Sep 20, 2017
1 parent ec439e0 commit 075d0c0
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 075d0c0

Please sign in to comment.