Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Hmm, why shouldn't child expects made before installing a hook be aff…
…ected, really?

(cherry picked from commit 0217052)
  • Loading branch information
papandreou committed Apr 25, 2022
commit 0ad1bb05136f5cd0e1fbaa20e0b466a780841e15
4 changes: 2 additions & 2 deletions test/api/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('hook', () => {
});

describe('with expect.child', () => {
it('should not affect child instances made before installing the hook', () => {
it('should affect child instances made before installing the hook', () => {
const parentExpect = expect.clone();
const childExpect = parentExpect.child();

Expand All @@ -59,7 +59,7 @@ describe('hook', () => {
});

childExpect(123, 'to equal', 123);
expect(called, 'to be false');
expect(called, 'to be true');
});

it('should not affect child instances made after installing the hook', () => {
Expand Down