mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Remove unneccesary second database clean, reset variables
- in high level describe block, to avoid leaky info
This commit is contained in:
parent
cc1be62bbd
commit
687e121658
@ -105,11 +105,7 @@ describe('users', () => {
|
||||
password: '1234',
|
||||
id: 'u565',
|
||||
})
|
||||
deleteUserVariables = { id: 'u343' }
|
||||
})
|
||||
|
||||
afterEach(async () => {
|
||||
await factory.cleanDatabase()
|
||||
deleteUserVariables = { id: 'u343', resource: [] }
|
||||
})
|
||||
|
||||
describe('unauthenticated', () => {
|
||||
@ -173,7 +169,6 @@ describe('users', () => {
|
||||
postId: 'p139',
|
||||
content: 'Comment by user u343',
|
||||
})
|
||||
deleteUserVariables = { id: 'u343' }
|
||||
})
|
||||
it('deletes my account', async () => {
|
||||
const expected = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user