Skip to content

Commit

Permalink
Condense fail into one file
Browse files Browse the repository at this point in the history
  • Loading branch information
mattphillips committed Jan 31, 2022
1 parent 8246b83 commit 2a92a7b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 19 deletions.
9 changes: 9 additions & 0 deletions src/matchers/fail.js
@@ -0,0 +1,9 @@
export function fail(_, message) {
return {
pass: false,
message: () => {
if (message) return message;
else return 'fails by .fail() assertion';
},
};
}
10 changes: 0 additions & 10 deletions src/matchers/fail/index.js

This file was deleted.

1 change: 0 additions & 1 deletion src/matchers/fail/predicate.js

This file was deleted.

7 changes: 0 additions & 7 deletions src/matchers/fail/predicate.test.js

This file was deleted.

@@ -1,4 +1,4 @@
import * as matcher from './';
import * as matcher from 'src/matchers/fail';

expect.extend(matcher);

Expand Down

0 comments on commit 2a92a7b

Please sign in to comment.