Skip to content

Commit

Permalink
test(ethers): decrease calls length
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Jul 17, 2024
1 parent 4af330d commit c5509f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blue-sdk-ethers/test/Market.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe("augment/Market", () => {
const value = await Market.fetch(MAINNET_MARKETS.usdc_wstEth.id, signer);

expect(value).to.eql(expectedData);
expect((signer.provider.call as SinonSpy).getCalls()).to.have.length(4);
expect((signer.provider.call as SinonSpy).getCalls()).to.have.length(3);
});

it("should fetch market data from config", async () => {
Expand Down Expand Up @@ -92,7 +92,7 @@ describe("augment/Market", () => {
const value = await Market.fetch(MAINNET_MARKETS.idle_usdc.id, signer);

expect(value).to.eql(expectedData);
expect((signer.provider.call as SinonSpy).getCalls()).to.have.length(2);
expect((signer.provider.call as SinonSpy).getCalls()).to.have.length(1);
});

it("should not fetch rate at target for unknown irm", async () => {
Expand Down

0 comments on commit c5509f3

Please sign in to comment.