feat: add sncrypto client side packages
This commit is contained in:
17
packages/sncrypto-web/test/memory.test.js
Normal file
17
packages/sncrypto-web/test/memory.test.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/* eslint-disable no-unused-expressions */
|
||||
/* eslint-disable no-undef */
|
||||
import './vendor/chai-as-promised-built.js'
|
||||
|
||||
chai.use(chaiAsPromised)
|
||||
|
||||
/**
|
||||
* Simple empty test page to create and deinit empty page
|
||||
* Then check browser Memory tool to make sure there are no leaks.
|
||||
*/
|
||||
describe('memory', async function () {
|
||||
it('cleanup', function () {
|
||||
this.webCrypto = new SNWebCrypto()
|
||||
this.webCrypto.deinit()
|
||||
this.webCrypto = null
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user