Skip to content

Commit 5afe721

Browse files
committed
faucet-client: process?.env
1 parent fc8a92b commit 5afe721

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/faucet-client/src/faucetclient.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { FaucetClient } from "./faucetclient";
22

33
function pendingWithoutFaucet(): void {
4-
if (!process.env.FAUCET_ENABLED) {
5-
pending("Set FAUCET_ENABLED to enable tests that need a faucet");
4+
if (typeof process !== "undefined" && process?.env.FAUCET_ENABLED) {
5+
return;
66
}
7+
pending("Set FAUCET_ENABLED to enable tests that need a faucet");
78
}
89

910
describe("FaucetClient", () => {

0 commit comments

Comments
 (0)