Skip to content

Commit

Permalink
Ignore milliseconds for the post test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhongjiang committed Dec 21, 2015
1 parent c5145ae commit 80ded2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/scripts/processors/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,8 @@ describe('post', function() {
}).spread(function(stats) {
var post = Post.findOne({source: file.path});

post.date.toDate().should.eql(stats.ctime);
post.updated.toDate().should.eql(stats.mtime);
post.date.toDate().setMilliseconds(0).should.eql(stats.ctime.setMilliseconds(0));
post.updated.toDate().setMilliseconds(0).should.eql(stats.mtime.setMilliseconds(0));

return post.remove();
}).finally(function() {
Expand Down Expand Up @@ -924,8 +924,8 @@ describe('post', function() {
}).spread(function(stats) {
var post = Post.findOne({source: file.path});

post.date.toDate().should.eql(stats.ctime);
post.updated.toDate().should.eql(stats.mtime);
post.date.toDate().setMilliseconds(0).should.eql(stats.ctime.setMilliseconds(0));
post.updated.toDate().setMilliseconds(0).should.eql(stats.mtime.setMilliseconds(0));

return post.remove();
}).finally(function() {
Expand Down

0 comments on commit 80ded2f

Please sign in to comment.