Use top level describe()

This commit is contained in:
Daniel Lugo 2021-12-16 11:07:03 -04:00
parent 0166636ccc
commit 5542d7b8db
2 changed files with 102 additions and 98 deletions

View file

@ -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)
})
})
})

View file

@ -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)
})
})
})