Files
smartcrypto/test/test.ts

17 lines
472 B
TypeScript
Raw Normal View History

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