Skip to content

Commit

Permalink
Update integration tests after removing Goerli from testnets list
Browse files Browse the repository at this point in the history
As Goerli got removed from the list of default testnets, we need to update the
tests that assert the number of supported networks.
  • Loading branch information
michalinacienciala committed Dec 22, 2023
1 parent 76b590c commit bbffedd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions background/services/chain/tests/index.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ describe("ChainService", () => {
it("Should properly update supported networks", async () => {
chainService.supportedNetworks = []
await chainService.updateSupportedNetworks()
expect(chainService.supportedNetworks.length).toBe(10)
expect(chainService.supportedNetworks.length).toBe(9)
})
})

describe("addCustomChain", () => {
// 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(10)
expect(chainService.supportedNetworks.length).toBe(9)
await chainService.addCustomChain(FANTOM_CHAIN_PARAMS)
expect(chainService.supportedNetworks.length).toBe(11)

Check failure on line 210 in background/services/chain/tests/index.integration.test.ts

View workflow job for this annotation

GitHub Actions / test

ChainService › addCustomChain › should update supported networks after adding a chain

expect(received).toBe(expected) // Object.is equality Expected: 11 Received: 10 at Object.toBe (background/services/chain/tests/index.integration.test.ts:210:53)
})
Expand Down

0 comments on commit bbffedd

Please sign in to comment.