Download spectrum/api/test/community/queries/communitySettings.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/test/community/queries/communitySettings.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/test/community/queries/communitySettings.test.js
-
curl -L -o communitySettings.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/test/community/queries/communitySettings.test.js
409 Bytes
| //@flow | |
| import { request } from '../../utils'; | |
| import { SPECTRUM_COMMUNITY_ID } from '../../../migrations/seed/default/constants'; | |
| it('should fetch a communitys settings', async () => { | |
| const query = /* GraphQL */ ` | |
| { | |
| community(id: "${SPECTRUM_COMMUNITY_ID}") { | |
| id | |
| } | |
| } | |
| `; | |
| expect.assertions(1); | |
| const result = await request(query); | |
| expect(result).toMatchSnapshot(); | |
| }); | |