Download react-boilerplate/app/containers/HomePage/tests/actions.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/HomePage/tests/actions.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-boilerplate/app/containers/HomePage/tests/actions.test.js
-
curl -L -o actions.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/app/containers/HomePage/tests/actions.test.js
443 Bytes
| import { CHANGE_USERNAME } from '../constants'; | |
| import { changeUsername } from '../actions'; | |
| describe('Home Actions', () => { | |
| describe('changeUsername', () => { | |
| it('should return the correct type and the passed name', () => { | |
| const fixture = 'Max'; | |
| const expectedResult = { | |
| type: CHANGE_USERNAME, | |
| username: fixture, | |
| }; | |
| expect(changeUsername(fixture)).toEqual(expectedResult); | |
| }); | |
| }); | |
| }); | |