We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c32c081 commit 2c1195eCopy full SHA for 2c1195e
src/hooks/useCroct.test.tsx
@@ -5,13 +5,8 @@ import {CroctContext} from '../CroctProvider';
5
6
describe('useCroct', () => {
7
it('should fail if used out of the <CroctProvider/> component', () => {
8
- jest.spyOn(console, 'error').mockImplementation();
9
-
10
expect(() => renderHook(() => useCroct()))
11
.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();
15
});
16
17
it('should return the Plug instance', () => {
0 commit comments