Skip to content

Commit

Permalink
More empty buffer checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ilammy committed Dec 6, 2019
1 parent 33ac4f9 commit 0c9e696
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wrappers/themis/wasm/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ describe('wasm-themis', function() {
expectError(ThemisErrorCode.INVALID_PARAMETER)
)
})
it('fails with invalid types', function() {
generallyInvalidArguments.forEach(function(invalid) {
assert.throws(() => new themis.SymmetricKey(invalid),
TypeError
)
})
})
})
let masterKey1 = new Uint8Array([1, 2, 3, 4])
let masterKey2 = new Uint8Array([5, 6, 7, 8, 9])
Expand Down

0 comments on commit 0c9e696

Please sign in to comment.