ledger-amino: Make test setup conditional
This commit is contained in:
parent
4e67ed3618
commit
e754eeafe9
@ -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", () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user