Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Feb 29, 2024
1 parent f0a05e7 commit 1c92396
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/libs/test/AxelarQueryAPI.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,18 @@ describe("AxelarQueryAPI", () => {
expect(gasAmount).toBeDefined();
});

it("should return error when the source chain is L2, but the executeData is undefuned ", async () => {
expect(
api.estimateGasFee(
"ethereum-2",
EvmChain.OPTIMISM,
700000,
1.1,
GasToken.USDC,
"500000",
undefined
)
).rejects.toThrow("executeData is required to calculate the L1 execution fee for optimism");
it("should be able to return the gas fee when the source chain is L2, but the executeData is undefined ", async () => {
const response = await api.estimateGasFee(
"ethereum-2",
EvmChain.OPTIMISM,
700000,
1.1,
GasToken.USDC,
"500000",
undefined
);

expect(response).toBeDefined();
});

test("It should return estimated gas amount that makes sense for native token", async () => {
Expand Down

0 comments on commit 1c92396

Please sign in to comment.