Skip to content

Commit

Permalink
Changes toBeDate() snapshot test to use ISO 8601
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodp committed Apr 16, 2018
1 parent 69c2eff commit c4ed456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/matchers/toBeDate/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`.not.toBeDate fails when given a date 1`] = `
"<dim>expect(</><red>received</><dim>).not.toBeDate(</><dim>)</>
Expected value to not be a date received:
<red>2018-01-01T15:00:00.000Z</>"
<red>2018-01-01T13:00:00.000Z</>"
`;
exports[`.toBeDate fails when not given a date 1`] = `
Expand Down
2 changes: 1 addition & 1 deletion src/matchers/toBeDate/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ describe('.not.toBeDate', () => {
});

test('fails when given a date', () => {
expect(() => expect(new Date('01/01/2018 13:00:00')).not.toBeDate()).toThrowErrorMatchingSnapshot();
expect(() => expect(new Date('2018-01-01T13:00:00.000Z')).not.toBeDate()).toThrowErrorMatchingSnapshot();
});
});

0 comments on commit c4ed456

Please sign in to comment.