Skip to content

Commit

Permalink
test(provider): fix the network matching
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion committed Jan 23, 2024
1 parent 2340105 commit 9402345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ describe("Provider", () => {
it("should return a provider connected to local network", async () => {
const provider = Provider.getDefaultProvider(types.Network.Localhost);
const network = await provider.getNetwork();
expect(network.matches(types.Network.Localhost)).not.to.be.true;
expect(network.chainId).to.be.equal(BigInt(270));
});

it("should return a provider connected to Goerli network", async () => {
const provider = Provider.getDefaultProvider(types.Network.Goerli);
const network = await provider.getNetwork();
expect(network.matches(types.Network.Goerli)).not.to.be.true;
expect(network.chainId).to.be.equal(BigInt(280));
});

it("should return a provider connected to Sepolia network", async () => {
const provider = Provider.getDefaultProvider(types.Network.Sepolia);
const network = await provider.getNetwork();
expect(network.matches(types.Network.Sepolia)).not.to.be.true;
expect(network.chainId).to.be.equal(BigInt(300));
});

it("should return a provider connected to main network", async () => {
const provider = Provider.getDefaultProvider(types.Network.Mainnet);
const network = await provider.getNetwork();
expect(network.matches(types.Network.Mainnet)).not.to.be.true;
expect(network.chainId).to.be.equal(BigInt(324));
});
});

Expand Down

0 comments on commit 9402345

Please sign in to comment.