Skip to content

Commit 2c1195e

Browse files
committed
Fix test
1 parent c32c081 commit 2c1195e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/hooks/useCroct.test.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ import {CroctContext} from '../CroctProvider';
55

66
describe('useCroct', () => {
77
it('should fail if used out of the <CroctProvider/> component', () => {
8-
jest.spyOn(console, 'error').mockImplementation();
9-
108
expect(() => renderHook(() => useCroct()))
119
.toThrow('useCroct() can only be used in the context of a <CroctProvider> component.');
12-
13-
// eslint-disable-next-line no-console -- Testing console output.
14-
expect(console.error).toHaveBeenCalled();
1510
});
1611

1712
it('should return the Plug instance', () => {

0 commit comments

Comments
 (0)