mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Clean up of backend tests
- changed variable name, remove unneeded beforeEach
This commit is contained in:
parent
f7b2d52a7e
commit
7bbf870d8d
@ -143,7 +143,7 @@ describe('users', () => {
|
||||
})
|
||||
|
||||
describe('attempting to delete my own account', () => {
|
||||
let expected
|
||||
let expectedResponse
|
||||
beforeEach(async () => {
|
||||
await asAuthor.authenticateAs({
|
||||
email: 'test@example.org',
|
||||
@ -173,10 +173,6 @@ describe('users', () => {
|
||||
})
|
||||
|
||||
describe("deletes a user's", () => {
|
||||
beforeEach(async () => {
|
||||
deleteUserVariables = { id: 'u343', resource: [] }
|
||||
})
|
||||
|
||||
it('posts on request', async () => {
|
||||
deleteUserVariables = { id: 'u343', resource: ['Post'] }
|
||||
expectedResponse = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user