33 lines
692 B
JavaScript
33 lines
692 B
JavaScript
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 () {
|
|
let application
|
|
before(async function () {
|
|
localStorage.clear()
|
|
})
|
|
|
|
after(async function () {
|
|
localStorage.clear()
|
|
})
|
|
|
|
beforeEach(async function () {
|
|
application = await Factory.createInitAppWithFakeCrypto()
|
|
})
|
|
|
|
afterEach(async function () {
|
|
await Factory.safeDeinit(application)
|
|
application = undefined
|
|
})
|
|
|
|
it('passes', async function () {
|
|
expect(true).to.equal(true)
|
|
})
|
|
})
|