react-code-dataset / spectrum /api /test /thread /mutations /__snapshots__ /publishThread.test.js.snap
Download spectrum/api/test/thread/mutations/__snapshots__/publishThread.test.js.snap from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 807 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/test/thread/mutations/__snapshots__/publishThread.test.js.snap
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/test/thread/mutations/__snapshots__/publishThread.test.js.snap
-
curl -L -o publishThread.test.js.snap https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/test/thread/mutations/__snapshots__/publishThread.test.js.snap
807 Bytes
| // Jest Snapshot v1, https://goo.gl/fbAQLP | |
| exports[`should create a thread if user has permissions 1`] = ` | |
| Object { | |
| "data": Object { | |
| "publishThread": Object { | |
| "content": Object { | |
| "title": "test thread", | |
| }, | |
| "isLocked": false, | |
| "isPublished": true, | |
| "type": "DRAFTJS", | |
| }, | |
| }, | |
| } | |
| `; | |
| exports[`should prevent signed out users from publishing a thread 1`] = ` | |
| Object { | |
| "data": Object { | |
| "publishThread": null, | |
| }, | |
| "errors": Array [ | |
| [GraphQLError: You must be signed in to publish a new thread.], | |
| ], | |
| } | |
| `; | |
| exports[`should prevent thread publish if user has no permissions 1`] = ` | |
| Object { | |
| "data": Object { | |
| "publishThread": null, | |
| }, | |
| "errors": Array [ | |
| [GraphQLError: You don't have permission to create threads in this channel.], | |
| ], | |
| } | |
| `; | |