Skip to content

Commit 8cc00ba

Browse files
committed
revert unnecessary change
1 parent c14ea28 commit 8cc00ba

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/__tests__/debug.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ test('debug.deep', () => {
5656
const component = <Button onPress={jest.fn} text="Press me" />;
5757
debug.deep(component);
5858

59-
const mockCalls = console.log.mock.calls;
60-
const output = mockCalls[0][0];
59+
const output = console.log.mock.calls[0][0];
6160

6261
expect(stripAnsi(output)).not.toEqual(output);
6362
expect(stripAnsi(output)).toMatchSnapshot();
@@ -81,8 +80,7 @@ test('debug.deep async test', async () => {
8180

8281
debug.deep(toJSON());
8382

84-
const mockCalls = console.log.mock.calls;
85-
const output = mockCalls[0][0];
83+
const output = console.log.mock.calls[0][0];
8684

8785
expect(stripAnsi(output)).toMatchSnapshot();
8886
});

0 commit comments

Comments
 (0)