File size: 807 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 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.],
  ],
}
`;