Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Commit

Permalink
Improve coverage of lib/algorithms.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Dec 20, 2019
1 parent 08f4feb commit a02c7f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/subtle.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ describe('crypto.subtle', () => {
it('should not have any other properties', () => {
assert.strictEqual(Object.keys(subtle).length, fns.length);
});

it('should throw if an unsupported algorithm is requested', async () => {
return assert.rejects(subtle.digest('AES-KW', Buffer.alloc(0)),
/NotSupportedError/);
});
});

0 comments on commit a02c7f7

Please sign in to comment.