Skip to content

Commit f0c9af9

Browse files
committed
Need encryption context
1 parent 041a5cc commit f0c9af9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/encrypt-node/test/encrypt.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ describe('encrypt structural testing', () => {
373373

374374
it('can encrypt empty message', async () => {
375375
const plaintext = new Uint8Array()
376-
const { result, messageHeader } = await encrypt(keyRing, plaintext)
376+
const encryptionContext = { simple: 'context' }
377+
const { result, messageHeader } = await encrypt(keyRing, plaintext, {
378+
encryptionContext,
379+
})
377380

378381
/* The default algorithm suite will add a signature key to the context.
379382
* So I only check that the passed context elements exist.

0 commit comments

Comments
 (0)