diff --git a/packages/fcl/src/utils/getChainId.test.js b/packages/fcl/src/utils/getChainId.test.js index 10eb9cb04..f0b567a97 100644 --- a/packages/fcl/src/utils/getChainId.test.js +++ b/packages/fcl/src/utils/getChainId.test.js @@ -1,13 +1,15 @@ import {config} from "@onflow/config" import assert from "assert" -import { getChainId } from "./getChainId" +import {getChainId} from "./getChainId" describe("getChainId", () => { - it("getChainId assuming it's already in config", async () => { - config.put("flow.network.default", "testnet") + let network + + await config.overload({"flow.network.default": "testnet"}, async () => { + network = await getChainId() + }) - const network = await getChainId() - assert.equal("testnet", network) + assert.equal(network, "testnet") }) })