fix useStatelessReducer tests

This commit is contained in:
Ashley Harrison
2025-12-08 16:59:10 +00:00
parent afe54f6739
commit 3ef28b727f
@@ -33,11 +33,9 @@ describe('useStatelessReducer Hook', () => {
describe('useDispatch Hook', () => {
it('Should throw when used outside of DispatchContext', () => {
jest.spyOn(console, 'error').mockImplementation(() => {});
expect(() => {
renderHook(() => useDispatch());
}).toThrow();
expect(console.error).toHaveBeenCalled();
});
it('Should return a dispatch function', () => {