Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Idan Attias committed Nov 27, 2019
1 parent 70857a1 commit 48a2b5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/matchers/toBeDateString/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`.not.toBeDateString fails when given a date string 1`] = `
"<dim>expect(</><red>received</><dim>).not.toBeDateDateString(</><dim>)</>
"<dim>expect(</><red>received</><dim>).not.toBeDateString(</><dim>)</>
Expected value to not be a date string received:
<red>\\"2018-01-01T13:00:00.000Z\\"</>"
`;
exports[`.toBeDateString fails when not given a date string 1`] = `
"<dim>expect(</><red>received</><dim>).toBeDateDateString(</><dim>)</>
"<dim>expect(</><red>received</><dim>).toBeDateString(</><dim>)</>
Expected value to be a date string received:
<red>\\"not a date\\"</>"
Expand Down
4 changes: 2 additions & 2 deletions src/matchers/toBeDateString/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { matcherHint, printReceived } from 'jest-matcher-utils';
import predicate from './predicate';

const passMessage = received => () =>
matcherHint('.not.toBeDateDateString', 'received', '') +
matcherHint('.not.toBeDateString', 'received', '') +
'\n\n' +
'Expected value to not be a date string received:\n' +
` ${printReceived(received)}`;

const failMessage = received => () =>
matcherHint('.toBeDateDateString', 'received', '') +
matcherHint('.toBeDateString', 'received', '') +
'\n\n' +
'Expected value to be a date string received:\n' +
` ${printReceived(received)}`;
Expand Down

0 comments on commit 48a2b5d

Please sign in to comment.