Nested beforeEach

- flaky test, leaky info
This commit is contained in:
Matt Rider 2019-06-07 14:47:57 -03:00
parent 687e121658
commit ef1f5ea51c

View File

@ -204,6 +204,10 @@ describe('users', () => {
})
describe("deletes a user's", () => {
beforeEach(async () => {
deleteUserVariables = { id: 'u343', resource: [] }
})
it('posts on request', async () => {
deleteUserVariables = { id: 'u343', resource: ['Post'] }
await client.request(deleteUserMutation, deleteUserVariables)