Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jahabeebs committed Sep 27, 2024
1 parent 6b7f79c commit 907d1b5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ describe("onResponseDisputed", () => {
response.decodedData.response.block + 1n,
);

const mockPledgeForDispute = vi.spyOn(protocolProvider, "pledgeForDispute");
vi.spyOn(protocolProvider, "pledgeForDispute").mockResolvedValue();

actor.enqueue(event);

await actor.processEvents();

expect(mockPledgeForDispute).toHaveBeenCalled();
expect(protocolProvider.pledgeForDispute).toHaveBeenCalled();
});

it("pledges against dispute if proposal is ok", async () => {
Expand All @@ -76,13 +76,13 @@ describe("onResponseDisputed", () => {
response.decodedData.response.block,
);

const mockPledgeAgainstDispute = vi.spyOn(protocolProvider, "pledgeAgainstDispute");
vi.spyOn(protocolProvider, "pledgeAgainstDispute").mockResolvedValue();

actor.enqueue(event);

await actor.processEvents();

expect(mockPledgeAgainstDispute).toHaveBeenCalled();
expect(protocolProvider.pledgeAgainstDispute).toHaveBeenCalled();
});

it("adds dispute to registry", async () => {
Expand Down

0 comments on commit 907d1b5

Please sign in to comment.