fix: remove instanceof checks
This commit is contained in:
committed by
Michael Vines
parent
31ea69f278
commit
d0f4b24481
@ -1,10 +1,8 @@
|
||||
// @flow
|
||||
import {Account} from '../src/account';
|
||||
import {PublicKey} from '../src/publickey';
|
||||
|
||||
test('generate new account', () => {
|
||||
const account = new Account();
|
||||
expect(PublicKey.isPublicKey(account.publicKey)).toBeTruthy();
|
||||
expect(account.secretKey).toHaveLength(64);
|
||||
});
|
||||
|
||||
|
@ -103,14 +103,6 @@ test('equals', () => {
|
||||
expect(arrayKey.equals(base56Key)).toBe(true);
|
||||
});
|
||||
|
||||
test('isPublicKey', () => {
|
||||
const key = new PublicKey(
|
||||
'0x100000000000000000000000000000000000000000000000000000000000000',
|
||||
);
|
||||
expect(PublicKey.isPublicKey(key)).toBe(true);
|
||||
expect(PublicKey.isPublicKey({})).toBe(false);
|
||||
});
|
||||
|
||||
test('toBase58', () => {
|
||||
const key = new PublicKey(
|
||||
'0x300000000000000000000000000000000000000000000000000000000000000',
|
||||
|
Reference in New Issue
Block a user