-
-
Save hiakku/7af8173a9d913b0cc35c0fdfcc665533 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { takeEvery } from 'redux-saga/effects'; | |
import rootSaga, { watchSagaFunc } from './saga'; | |
it('Test the watchSagaFunc fork function inside rootSaga func', () => { | |
const rootS = rootSaga(); | |
//Get the particular statement value | |
const rootNextVal = rootS.next().value; | |
//Test for takeEvery function inside watchSagaFunc | |
expect(rootNextVal).toEqual(takeEvery('TEST_FUNCTION',watchSagaFunc)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment