smartcrypto/test/test.ts
2023-08-21 08:29:27 +02:00

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