react-code-dataset / spectrum /api /test /community /mutations /__snapshots__ /editCommunity.test.js.snap
Download spectrum/api/test/community/mutations/__snapshots__/editCommunity.test.js.snap from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 738 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/test/community/mutations/__snapshots__/editCommunity.test.js.snap
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/test/community/mutations/__snapshots__/editCommunity.test.js.snap
-
curl -L -o editCommunity.test.js.snap https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/test/community/mutations/__snapshots__/editCommunity.test.js.snap
738 Bytes
| // Jest Snapshot v1, https://goo.gl/fbAQLP | |
| exports[`should edit a community name and description 1`] = ` | |
| Object { | |
| "data": Object { | |
| "editCommunity": Object { | |
| "description": "new description", | |
| "name": "new name", | |
| }, | |
| }, | |
| } | |
| `; | |
| exports[`should prevent community from being edited by a non owner 1`] = ` | |
| Object { | |
| "data": Object { | |
| "editCommunity": null, | |
| }, | |
| "errors": Array [ | |
| [GraphQLError: You don't have permission to make changes to this community.], | |
| ], | |
| } | |
| `; | |
| exports[`should prevent community from being edited by a non user 1`] = ` | |
| Object { | |
| "data": Object { | |
| "editCommunity": null, | |
| }, | |
| "errors": Array [ | |
| [GraphQLError: You must be signed in to make changes to this community.], | |
| ], | |
| } | |
| `; | |