react-code-dataset / spectrum /api /test /thread /mutations /__snapshots__ /deleteThread.test.js.snap
Download spectrum/api/test/thread/mutations/__snapshots__/deleteThread.test.js.snap from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 785 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/test/thread/mutations/__snapshots__/deleteThread.test.js.snap
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/test/thread/mutations/__snapshots__/deleteThread.test.js.snap
-
curl -L -o deleteThread.test.js.snap https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/test/thread/mutations/__snapshots__/deleteThread.test.js.snap
785 Bytes
| // Jest Snapshot v1, https://goo.gl/fbAQLP | |
| exports[`should be able to delete self-published thread 1`] = ` | |
| Object { | |
| "data": Object { | |
| "deleteThread": true, | |
| }, | |
| } | |
| `; | |
| exports[`should be able to delete thread if user owns community 1`] = ` | |
| Object { | |
| "data": Object { | |
| "deleteThread": true, | |
| }, | |
| } | |
| `; | |
| exports[`should not delete thread if user doesn't have permissions 1`] = ` | |
| Object { | |
| "data": Object { | |
| "deleteThread": null, | |
| }, | |
| "errors": Array [ | |
| [GraphQLError: You don't have permission to make changes to this thread.], | |
| ], | |
| } | |
| `; | |
| exports[`should not delete thread if user is not signed in 1`] = ` | |
| Object { | |
| "data": Object { | |
| "deleteThread": null, | |
| }, | |
| "errors": Array [ | |
| [GraphQLError: You must be signed in to make changes to this thread.], | |
| ], | |
| } | |
| `; | |