Skip to content

Commit

Permalink
fix: deiniting context on deleted account tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsojko committed Sep 29, 2023
1 parent a7ea119 commit 0a351df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/snjs/mocha/vaults/surviving.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ describe('designated survival', function () {
})

afterEach(async function () {
await context.deinit()
if (context && !context.application.dealloced) {
await context.deinit()
}
localStorage.clear()
sinon.restore()
context = undefined
Expand Down

0 comments on commit 0a351df

Please sign in to comment.