You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
303 B
12 lines
303 B
5 years ago
|
import * as hash from '../src/keccak256';
|
||
|
|
||
|
import hashes from './fixtures/hashes.json';
|
||
|
|
||
|
describe('should test keccak256', () => {
|
||
|
it('should test keccak256 hashing', () => {
|
||
|
hashes.forEach((testcase) => {
|
||
|
expect(hash.keccak256(testcase.data)).toEqual(testcase.keccak256);
|
||
|
});
|
||
|
});
|
||
|
});
|