Skip to content

Commit

Permalink
test: clear all mocks after running provider tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseRFelix committed Jun 6, 2024
1 parent 07e68ba commit a3773df
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ beforeEach(() => {
);
});

afterEach(() => {
jest.clearAllMocks();
});

describe("AxelarBridgeProvider", () => {
let provider: AxelarBridgeProvider;
let ctx: BridgeProviderContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ beforeEach(() => {
);
});

afterEach(() => {
jest.clearAllMocks();
});

describe("SkipBridgeProvider", () => {
let provider: SkipBridgeProvider;
let ctx: BridgeProviderContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ beforeEach(() => {
);
});

afterEach(() => {
jest.clearAllMocks();
});

describe("SquidBridgeProvider", () => {
let provider: SquidBridgeProvider;
let ctx: BridgeProviderContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jest.mock("@osmosis-labs/utils", () => {
};
});

afterEach(() => {
jest.clearAllMocks();
});

describe("SquidTransferStatusProvider", () => {
let provider: SquidTransferStatusProvider;
const mockReceiver: TransferStatusReceiver = {
Expand All @@ -32,10 +36,6 @@ describe("SquidTransferStatusProvider", () => {
provider.statusReceiverDelegate = mockReceiver;
});

afterEach(() => {
jest.clearAllMocks();
});

it("should initialize with correct URLs", () => {
expect(provider.squidScanBaseUrl).toBe("https://axelarscan.io");
});
Expand Down

0 comments on commit a3773df

Please sign in to comment.