-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Will Lopez <[email protected]>
- Loading branch information
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
25 changes: 24 additions & 1 deletion
25
...tion/api/mutations/updateSimpleInventory/__snapshots__/updateSimpleInventory.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`throws access-denied when updating simpleInventory if not an admin 1`] = `[GraphQLError: Access denied]`; | ||
exports[`throws access-denied when updating simpleInventory if not an admin 1`] = ` | ||
Object { | ||
"extensions": Object { | ||
"code": "FORBIDDEN", | ||
"exception": Object { | ||
"details": Object {}, | ||
"error": "access-denied", | ||
"eventData": Object {}, | ||
"isClientSafe": true, | ||
"reason": "Access denied", | ||
}, | ||
}, | ||
"locations": Array [ | ||
Object { | ||
"column": 3, | ||
"line": 2, | ||
}, | ||
], | ||
"message": "Access denied", | ||
"path": Array [ | ||
"updateSimpleInventory", | ||
], | ||
} | ||
`; |
25 changes: 24 additions & 1 deletion
25
tests/integration/api/queries/simpleInventory/__snapshots__/simpleInventory.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`throws access-denied when getting simpleInventory if not an admin 1`] = `[GraphQLError: Access denied]`; | ||
exports[`throws access-denied when getting simpleInventory if not an admin 1`] = ` | ||
Object { | ||
"extensions": Object { | ||
"code": "FORBIDDEN", | ||
"exception": Object { | ||
"details": Object {}, | ||
"error": "access-denied", | ||
"eventData": Object {}, | ||
"isClientSafe": true, | ||
"reason": "Access denied", | ||
}, | ||
}, | ||
"locations": Array [ | ||
Object { | ||
"column": 3, | ||
"line": 2, | ||
}, | ||
], | ||
"message": "Access denied", | ||
"path": Array [ | ||
"simpleInventory", | ||
], | ||
} | ||
`; |