forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: refactor api-surface.ts batch hyperledger-cacti#3 hyperledger-c…
…acti#1045 Fixes hyperledger-cacti#1045 Signed-off-by: Tommesha Wiggins <tommesha.wiggins@accenture.com>
- Loading branch information
1 parent
2eac8bf
commit 539a801
Showing
3 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
packages/cactus-plugin-ledger-connector-quorum/src/test/typescript/unit/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
|
||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(apiSurface, "apiSurface truthy OK"); | ||
t.end(); | ||
}); |
9 changes: 0 additions & 9 deletions
9
packages/cactus-plugin-ledger-connector-quorum/src/test/typescript/unit/api-surface.ts
This file was deleted.
Oops, something went wrong.
11 changes: 5 additions & 6 deletions
11
...s/cactus-test-plugin-ledger-connector-quorum/src/test/typescript/unit/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
const tap = require("tap"); | ||
import * as publicApi from "../../../main/typescript/public-api"; | ||
import test, { Test } from "tape-promise/tape"; | ||
|
||
tap.pass("Test file can be executed"); | ||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
|
||
tap.test("Library can be loaded", (assert: any) => { | ||
assert.plan(1); | ||
assert.ok(publicApi); | ||
test("Library can be loaded", (t: Test) => { | ||
t.ok(apiSurface, "apiSurface truthy OK"); | ||
t.end(); | ||
}); |