2023-08-21 06:29:27 +00:00
|
|
|
import { expect, tap } from '@push.rocks/tapbundle';
|
2022-10-23 21:53:34 +00:00
|
|
|
import * as smartcrypto from '../ts/index.js';
|
2019-10-01 12:11:20 +00:00
|
|
|
|
2021-02-20 17:51:30 +00:00
|
|
|
let testSmartCrypto: smartcrypto.Smartcrypto;
|
|
|
|
|
2019-10-01 12:11:20 +00:00
|
|
|
tap.test('first test', async () => {
|
2021-02-20 17:51:30 +00:00
|
|
|
testSmartCrypto = new smartcrypto.Smartcrypto();
|
2022-10-23 21:53:34 +00:00
|
|
|
expect(testSmartCrypto).toBeInstanceOf(smartcrypto.Smartcrypto);
|
2019-10-01 12:22:21 +00:00
|
|
|
});
|
2019-10-01 12:11:20 +00:00
|
|
|
|
2022-10-24 05:06:13 +00:00
|
|
|
tap.test('should create a private public keypair', async () => {
|
|
|
|
const keypair = await testSmartCrypto.createKeyPair();
|
|
|
|
console.log(keypair);
|
2023-08-21 06:29:27 +00:00
|
|
|
});
|
2022-10-24 05:06:13 +00:00
|
|
|
|
2019-10-01 12:22:21 +00:00
|
|
|
tap.start();
|