Make timestamp test a bit more forgiving

pull/27/head^2
Scott Nonnenberg 7 years ago
parent 2d48daa7b6
commit 884bc9333d

@ -119,7 +119,7 @@ describe('TimestampView', function() {
view.$el.attr('data-timestamp', now - 1000 - 6 * 24 * 60 * 60 * 1000); // 6 days and 1 sec ago
view.update();
assert.isAbove(view.delay, 60 * 60 * 1000); // hour
assert.isBelow(view.delay, 24 * 60 * 60 * 1000); // day
assert.isBelow(view.delay, 36 * 60 * 60 * 1000); // day and a half
});
it('does not updates very old timestamps', function() {

Loading…
Cancel
Save