tests: fix memory leaks (#2389)
This commit is contained in:
@@ -9,11 +9,6 @@ describe('shared vault permissions', function () {
|
||||
|
||||
let context
|
||||
|
||||
afterEach(async function () {
|
||||
await context.deinit()
|
||||
localStorage.clear()
|
||||
})
|
||||
|
||||
beforeEach(async function () {
|
||||
localStorage.clear()
|
||||
|
||||
@@ -23,6 +18,12 @@ describe('shared vault permissions', function () {
|
||||
await context.register()
|
||||
})
|
||||
|
||||
afterEach(async function () {
|
||||
await context.deinit()
|
||||
localStorage.clear()
|
||||
sinon.restore()
|
||||
})
|
||||
|
||||
it('non-admin user should not be able to invite user', async () => {
|
||||
context.anticipateConsoleError('Could not create invite')
|
||||
|
||||
@@ -42,6 +43,8 @@ describe('shared vault permissions', function () {
|
||||
|
||||
expect(result.isFailed()).to.be.true
|
||||
|
||||
await thirdParty.deinitContactContext()
|
||||
|
||||
await deinitContactContext()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user