fix(core): update
This commit is contained in:
20
test/test.ts
20
test/test.ts
@ -1,8 +1,20 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as smartkey from '../ts/index'
|
||||
import * as smartkey from '../ts/index';
|
||||
|
||||
let testSmartkey: smartkey.SmartKey;
|
||||
|
||||
tap.test('first test', async () => {
|
||||
console.log(smartkey.standardExport)
|
||||
})
|
||||
testSmartkey = new smartkey.SmartKey();
|
||||
expect(testSmartkey).to.be.instanceOf(smartkey.SmartKey);
|
||||
});
|
||||
|
||||
tap.start()
|
||||
tap.test('should create a valid keypair', async () => {
|
||||
const keyPair = await testSmartkey.getKeypair();
|
||||
expect(keyPair).to.be.instanceOf(smartkey.KeyPair);
|
||||
console.log(keyPair.publicKey);
|
||||
console.log(keyPair.privateKey);
|
||||
|
||||
console.log('note: these keys do not have any function, they are just a test ReferenceError.');
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user