Lint tests
This commit is contained in:
6
web3.js/test/.eslintrc.js
Normal file
6
web3.js/test/.eslintrc.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = { // eslint-disable-line import/no-commonjs
|
||||
'extends': [
|
||||
"plugin:jest/recommended",
|
||||
"../.eslintrc.js",
|
||||
]
|
||||
};
|
@ -3,8 +3,8 @@ import {Account} from '../src/account';
|
||||
|
||||
test('generate new account', () => {
|
||||
const account = new Account();
|
||||
const len = account.publicKey.length;
|
||||
expect(len === 43 || len === 44);
|
||||
expect(account.publicKey.length).toBeGreaterThanOrEqual(43);
|
||||
expect(account.publicKey.length).toBeLessThanOrEqual(44);
|
||||
expect(account.secretKey).toHaveLength(64);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user