Download react-boilerplate/app/containers/LanguageProvider/tests/selectors.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 292 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/LanguageProvider/tests/selectors.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-boilerplate/app/containers/LanguageProvider/tests/selectors.test.js
-
curl -L -o selectors.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/LanguageProvider/tests/selectors.test.js
292 Bytes
| import { selectLanguage } from '../selectors'; | |
| describe('selectLanguage', () => { | |
| it('should select the global state', () => { | |
| const globalState = {}; | |
| const mockedState = { | |
| language: globalState, | |
| }; | |
| expect(selectLanguage(mockedState)).toEqual(globalState); | |
| }); | |
| }); | |