fix: remove instanceof checks

This commit is contained in:
Justin Starry
2020-07-31 01:48:25 +08:00
committed by Michael Vines
parent 31ea69f278
commit d0f4b24481
5 changed files with 29 additions and 39 deletions

View File

@ -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);
});