Download react-boilerplate/internals/templates/tests/store.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/internals/templates/tests/store.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-boilerplate/internals/templates/tests/store.test.js
-
curl -L -o store.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/internals/templates/tests/store.test.js
750 Bytes
| /** | |
| * Test store addons | |
| */ | |
| import { browserHistory } from 'react-router'; | |
| import configureStore from '../configureStore'; | |
| describe('configureStore', () => { | |
| let store; | |
| beforeAll(() => { | |
| store = configureStore({}, browserHistory); | |
| }); | |
| describe('injectedReducers', () => { | |
| it('should contain an object for reducers', () => { | |
| expect(typeof store.injectedReducers).toBe('object'); | |
| }); | |
| }); | |
| describe('injectedSagas', () => { | |
| it('should contain an object for sagas', () => { | |
| expect(typeof store.injectedSagas).toBe('object'); | |
| }); | |
| }); | |
| describe('runSaga', () => { | |
| it('should contain a hook for `sagaMiddleware.run`', () => { | |
| expect(typeof store.runSaga).toEqual('function'); | |
| }); | |
| }); | |
| }); | |