From a194ea6abdebcff132d7f8e760a50093c49ac431 Mon Sep 17 00:00:00 2001 From: Michalina Date: Mon, 25 Sep 2023 16:26:32 +0200 Subject: [PATCH] Update integration tests after adding new supported networks As a support for two new networks was added, we need to update tests that assert the number of supported networks. --- background/services/chain/tests/index.integration.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/background/services/chain/tests/index.integration.test.ts b/background/services/chain/tests/index.integration.test.ts index 5d419bb31..6023ce431 100644 --- a/background/services/chain/tests/index.integration.test.ts +++ b/background/services/chain/tests/index.integration.test.ts @@ -197,7 +197,7 @@ describe("ChainService", () => { it("Should properly update supported networks", async () => { chainService.supportedNetworks = [] await chainService.updateSupportedNetworks() - expect(chainService.supportedNetworks.length).toBe(8) + expect(chainService.supportedNetworks.length).toBe(10) }) }) @@ -205,9 +205,9 @@ describe("ChainService", () => { // prettier-ignore const FANTOM_CHAIN_PARAMS = { chainId: "250", blockExplorerUrl: "https://ftmscan.com", chainName: "Fantom Opera", nativeCurrency: { name: "Fantom", symbol: "FTM", decimals: 18, }, rpcUrls: [ "https://fantom-mainnet.gateway.pokt.network/v1/lb/62759259ea1b320039c9e7ac", "https://rpc.ftm.tools", "https://rpc.ankr.com/fantom", "https://rpc.fantom.network", "https://rpc2.fantom.network", "https://rpc3.fantom.network", "https://rpcapi.fantom.network", "https://fantom-mainnet.public.blastapi.io", "https://1rpc.io/ftm", ], blockExplorerUrls: ["https://ftmscan.com"], } it("should update supported networks after adding a chain", async () => { - expect(chainService.supportedNetworks.length).toBe(8) + expect(chainService.supportedNetworks.length).toBe(10) await chainService.addCustomChain(FANTOM_CHAIN_PARAMS) - expect(chainService.supportedNetworks.length).toBe(9) + expect(chainService.supportedNetworks.length).toBe(11) }) it("should create a provider for the new chain", async () => {