Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Removing native js dependency #257

Merged
merged 8 commits into from
Jul 6, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adds missing keccak test.
  • Loading branch information
nebojsa94 committed Jun 11, 2020
commit 1d720123e58881f60b0d162393f6d60b84553d30
6 changes: 6 additions & 0 deletions test/hash.spec.ts
Original file line number Diff line number Diff line change
@@ -48,6 +48,12 @@ describe('keccak', function() {
keccak((<unknown>msg) as Buffer)
})
})
it('should error if provided incorrect bits', function() {
const msg = '0x3c9229289a6125f7fdf1885a77bb12c37a8d3b4962d936f7e3084dece32a3ca1'
assert.throws(function() {
keccak(toBuffer(msg), 1024)
})
})
})

describe('keccak256', function() {