File size: 785 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
40
// 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.],
  ],
}
`;