Skip to content

Commit 0c5c78c

Browse files
authored
Clarified comment
1 parent c388a49 commit 0c5c78c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

integration_tests/stack_trace/__tests__/custom_matcher.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ expect.extend({
2525
});
2626

2727
describe('Custom matcher', () => {
28-
// This test is expected to pass
2928
it('passes', () => {
29+
// This expectation should pass
3030
expect(() => 'foo').toCustomMatch('foo');
3131
});
3232

33-
// This test is expected to fail
3433
it('fails', () => {
3534
expect(() => {
35+
// This expectation should fail,
36+
// Which is why it's wrapped in a .toThrow() block.
3637
expect(() => 'foo').toCustomMatch('bar');
3738
}).toThrow();
3839
});

0 commit comments

Comments
 (0)