ledger-amino: Make test setup conditional

This commit is contained in:
willclarktech 2021-02-03 16:07:28 +00:00
parent 4e67ed3618
commit e754eeafe9
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -23,6 +23,7 @@ import { LedgerSigner } from "./ledgersigner";
import {
faucet,
launchpad,
ledgerEnabled,
pendingWithoutLaunchpad,
pendingWithoutLedger,
pendingWithoutSimapp,
@ -72,11 +73,15 @@ describe("LedgerSigner", () => {
});
beforeEach(async () => {
transport = await createTransport();
if (ledgerEnabled()) {
transport = await createTransport();
}
});
afterEach(async () => {
await transport.close();
if (ledgerEnabled()) {
await transport.close();
}
});
describe("getAccount", () => {