We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53246f9 commit 98735c8Copy full SHA for 98735c8
test/specs/effect.spec.ts
@@ -105,11 +105,15 @@ describe('Effect spec:', () => {
105
106
describe('Error handles', () => {
107
it(`Error won't affect the main state$`, () => {
108
+ const errorLog = jest.spyOn(console, 'error').mockImplementation(() => {})
109
countActions.error()
110
+ expect(errorLog.mock.calls.length).toBe(1)
111
+ errorLog.mockRestore()
112
+
113
countActions.add(1)
- countActions.minus(1)
- expect(getCount()).toBe(-1)
114
+ countActions.minus(2)
115
+ countActions.minus(3)
116
+ expect(getCount()).toBe(-4)
117
})
118
119
0 commit comments