From: Chris Duncan Date: Fri, 4 Jul 2025 00:00:38 +0000 (-0700) Subject: Use Node, then browser, then null for process envars. X-Git-Tag: v0.10.5~128 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=48d4651ea5e96d2b915c638f9b91f6e55f6eb7d1;p=libnemo.git Use Node, then browser, then null for process envars. --- diff --git a/test/test.refresh-accounts.mjs b/test/test.refresh-accounts.mjs index 14e08f7..59e76aa 100644 --- a/test/test.refresh-accounts.mjs +++ b/test/test.refresh-accounts.mjs @@ -9,12 +9,8 @@ import { NANO_TEST_VECTORS } from './VECTORS.js' import { Account, Bip44Wallet, Rpc } from '../dist/main.min.js' let rpc -//@ts-ignore -var process = process || null -if (process) { - //@ts-expect-error - rpc = new Rpc(process?.env?.NODE_URL ?? '', process?.env?.API_KEY_NAME) -} +var process = process || env || null +rpc = new Rpc(process?.env?.NODE_URL ?? '', process?.env?.API_KEY_NAME) await suite('refreshing account info', { skip: true }, async () => {