mirror of https://github.com/trezor/trezor-wallet
parent
7627aade89
commit
c6292a1375
@ -0,0 +1,11 @@
|
|||||||
|
module.exports = {
|
||||||
|
collectCoverage: true,
|
||||||
|
testURL: 'http://localhost',
|
||||||
|
|
||||||
|
modulePathIgnorePatterns: [
|
||||||
|
'node_modules',
|
||||||
|
],
|
||||||
|
transformIgnorePatterns: [
|
||||||
|
'src/babel',
|
||||||
|
],
|
||||||
|
};
|
@ -0,0 +1,9 @@
|
|||||||
|
import * as ethUtils from '../ethUtils';
|
||||||
|
|
||||||
|
it('decimalToHex', () => {
|
||||||
|
const input = [0, 1, 2, 100, 999];
|
||||||
|
|
||||||
|
input.forEach((entry) => {
|
||||||
|
expect(ethUtils.decimalToHex(entry)).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in new issue