17 lines
472 B
TypeScript
17 lines
472 B
TypeScript
import { expect, tap } from '@push.rocks/tapbundle';
|
|
import * as smartcrypto from '../ts/index.js';
|
|
|
|
let testSmartCrypto: smartcrypto.Smartcrypto;
|
|
|
|
tap.test('first test', async () => {
|
|
testSmartCrypto = new smartcrypto.Smartcrypto();
|
|
expect(testSmartCrypto).toBeInstanceOf(smartcrypto.Smartcrypto);
|
|
});
|
|
|
|
tap.test('should create a private public keypair', async () => {
|
|
const keypair = await testSmartCrypto.createKeyPair();
|
|
console.log(keypair);
|
|
});
|
|
|
|
tap.start();
|