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