Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Add a time with leading zero in test
Browse files Browse the repository at this point in the history
  • Loading branch information
thelastnode committed Jan 19, 2012
1 parent b650caa commit e7729ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/alcohol-tests.js
Expand Up @@ -18,12 +18,12 @@ vows.describe('alcohol.js').addBatch({
topic: function(date) {
var d = new Date(date - ONE_DAY);
d.setHours(15);
d.setMinutes(14);
d.setMinutes(00);
return d;
}(new Date()),

'should display as "yesterday at " plus a time': function(date) {
assert.equal(alcohol.stringify(date), 'yesterday at 3:14 pm');
assert.equal(alcohol.stringify(date), 'yesterday at 3:00 pm');
},
},
'A Date in the past in the AM': {
Expand Down

0 comments on commit e7729ae

Please sign in to comment.