Skip to content

Commit b22f917

Browse files
committed
Hmm, why shouldn't child expects made before installing a hook be affected, really?
(cherry picked from commit 0217052)
1 parent 773c119 commit b22f917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/api/hook.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('hook', () => {
4646
});
4747

4848
describe('with expect.child', () => {
49-
it('should not affect child instances made before installing the hook', () => {
49+
it('should affect child instances made before installing the hook', () => {
5050
const parentExpect = expect.clone();
5151
const childExpect = parentExpect.child();
5252

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

6161
childExpect(123, 'to equal', 123);
62-
expect(called, 'to be false');
62+
expect(called, 'to be true');
6363
});
6464

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

0 commit comments

Comments
 (0)