Use top level describe()
This commit is contained in:
parent
0166636ccc
commit
5542d7b8db
2 changed files with 102 additions and 98 deletions
|
|
@ -24,6 +24,7 @@ const storageDirectory = Path.resolve(__dirname, `./.test-storage`)
|
|||
|
||||
console.log(`Storage directory: ${storageDirectory}`)
|
||||
|
||||
describe('ECC', () => {
|
||||
describe('generateKeyPair()', () => {
|
||||
it('generates a keypair', async () => {
|
||||
expect.hasAssertions()
|
||||
|
|
@ -117,3 +118,4 @@ describe('encryptMessage()/decryptMessage()', () => {
|
|||
expect(decrypted).toEqual(message)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ const {
|
|||
convertBufferToBase64
|
||||
} = require('./crypto')
|
||||
|
||||
describe('crypto', () => {
|
||||
describe('generateRandomString()', () => {
|
||||
it('creates a random string of the specified length', async () => {
|
||||
expect.hasAssertions()
|
||||
|
|
@ -32,3 +33,4 @@ describe('Buffer <> String <> Buffer', () => {
|
|||
expect(asStringAgain).toEqual(rnd)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue