Skip to content

Commit 539a801

Browse files
twiggins120petermetz
authored andcommitted
test: refactor api-surface.ts batch hyperledger-cacti#3 hyperledger-cacti#1045
Fixes hyperledger-cacti#1045 Signed-off-by: Tommesha Wiggins <[email protected]>
1 parent 2eac8bf commit 539a801

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import test, { Test } from "tape-promise/tape";
2+
3+
import * as apiSurface from "../../../main/typescript/public-api";
4+
5+
test("Library can be loaded", (t: Test) => {
6+
t.ok(apiSurface, "apiSurface truthy OK");
7+
t.end();
8+
});

packages/cactus-plugin-ledger-connector-quorum/src/test/typescript/unit/api-surface.ts

-9
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
const tap = require("tap");
2-
import * as publicApi from "../../../main/typescript/public-api";
1+
import test, { Test } from "tape-promise/tape";
32

4-
tap.pass("Test file can be executed");
3+
import * as apiSurface from "../../../main/typescript/public-api";
54

6-
tap.test("Library can be loaded", (assert: any) => {
7-
assert.plan(1);
8-
assert.ok(publicApi);
5+
test("Library can be loaded", (t: Test) => {
6+
t.ok(apiSurface, "apiSurface truthy OK");
7+
t.end();
98
});

0 commit comments

Comments
 (0)