fix(core): update

This commit is contained in:
2019-02-23 15:53:18 +01:00
parent 100c92c6fd
commit 693a26bba7
7 changed files with 92 additions and 13 deletions

View File

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