Skip to content

Commit

Permalink
test(format-helpers): TZ independent check (#2653)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored Jul 7, 2017
1 parent d587357 commit 56e8f9b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -19,7 +19,11 @@ describe('util helpers', () => {

it('formats a date', () => {
const timestamp = Util.formatDateTime('2017-04-28T23:07:51.189Z');
assert.ok(timestamp.includes('Apr 28, 2017'));
assert.ok(
timestamp.includes('Apr 27, 2017') ||
timestamp.includes('Apr 28, 2017') ||
timestamp.includes('Apr 29, 2017')
);
});

it('calculates a score ratings', () => {

0 comments on commit 56e8f9b

Please sign in to comment.