Download react-boilerplate/app/containers/LanguageProvider/tests/actions.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/LanguageProvider/tests/actions.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-boilerplate/app/containers/LanguageProvider/tests/actions.test.js
-
curl -L -o actions.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/LanguageProvider/tests/actions.test.js
379 Bytes
| import { changeLocale } from '../actions'; | |
| import { CHANGE_LOCALE } from '../constants'; | |
| describe('LanguageProvider actions', () => { | |
| describe('Change Local Action', () => { | |
| it('has a type of CHANGE_LOCALE', () => { | |
| const expected = { | |
| type: CHANGE_LOCALE, | |
| locale: 'de', | |
| }; | |
| expect(changeLocale('de')).toEqual(expected); | |
| }); | |
| }); | |
| }); | |