This repository has been archived on 2023-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-20 19:08:53 +00:00
|
|
|
import herumi from "../../src/herumi";
|
2020-11-30 18:01:13 +00:00
|
|
|
import {runSecretKeyTests} from "./secretKey.test";
|
2020-11-20 19:03:17 +00:00
|
|
|
import {runPublicKeyTests} from "./publicKey.test";
|
|
|
|
// import {runKeypairTests} from "./keypair.test";
|
|
|
|
import {runIndexTests} from "./index.test";
|
|
|
|
|
2020-11-20 19:08:53 +00:00
|
|
|
// This file is intended to be compiled and run by Karma
|
|
|
|
// Do not import the node.bindings or it will break with:
|
|
|
|
// Error: BLST bindings loader should only run in a NodeJS context: process.platform
|
|
|
|
describe("herumi", () => {
|
|
|
|
before(async () => {
|
2020-11-20 19:35:32 +00:00
|
|
|
// For consistency with describeForAllImplementations
|
|
|
|
// eslint-disable-next-line import/no-named-as-default-member
|
2020-11-25 16:09:44 +00:00
|
|
|
await herumi.init();
|
2020-11-20 19:08:53 +00:00
|
|
|
});
|
|
|
|
|
2020-11-30 18:01:13 +00:00
|
|
|
runSecretKeyTests(herumi);
|
2020-11-20 19:08:53 +00:00
|
|
|
runPublicKeyTests(herumi);
|
2020-11-20 19:03:17 +00:00
|
|
|
// runKeypairTests(bls);
|
2020-11-20 19:08:53 +00:00
|
|
|
runIndexTests(herumi);
|
2020-11-20 19:03:17 +00:00
|
|
|
});
|