Files
standardnotes-app-web/packages/snjs/mocha/memory.test.js
2022-07-06 14:04:30 +02:00

33 lines
756 B
JavaScript

/* eslint-disable no-unused-expressions */
/* eslint-disable no-undef */
import * as Factory from './lib/factory.js'
chai.use(chaiAsPromised)
const expect = chai.expect
/**
* Simple empty test page to create and deinit empty application
* Then check browser Memory tool to make sure there are no leaks.
*/
describe('memory', function () {
before(async function () {
localStorage.clear()
})
after(async function () {
localStorage.clear()
})
beforeEach(async function () {
this.application = await Factory.createInitAppWithFakeCrypto()
})
afterEach(async function () {
await Factory.safeDeinit(this.application)
this.application = null
})
it('passes', async function () {
expect(true).to.equal(true)
})
})