Skip to content

Commit

Permalink
fix: add back deleted tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jahabeebs committed Sep 4, 2024
1 parent 24ca7b1 commit 9bd4286
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions packages/automated-dispute/tests/protocolProvider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,59 @@ describe("ProtocolProvider", () => {
});
});

describe.skip("getEvents", () => {
it("returns all events ordered asc by block and log index");
it.skip("includes `new epoch` event if needed"); // TODO: confirm if this is needed
it.skip("includes `request can be finalized` event if needed"); // TODO: confirm if this is needed
it("throws if the block range is not consistent");
it("throws if the RPC client fails");
});

describe.skip("hasStakedAssets", () => {
it("returns true if the address has more than 0 assets staked");
it("returns false if the address has 0 staked assets");
});

describe.skip("createRequest", () => {
it("succeeds if the RPC client sent the request");
// NOTE: Should we validate if the request was created by
// tracking the transaction result somehow? I feel like it's
// somewhat brittle to just wish for the tx to be processed.
it("throws if the epoch is not current");
it("throws if chains is empty");
it("throws if the RPC client fails");
});

describe.skip("getAvailableChains", () => {
it("returns an array of available chains in CAIP-2 compliant format");
it("throws if the RPC client fails");
});

describe.skip("proposeResponse", () => {
it("returns if the RPC client sent the response");
it("throws if the RPC client fails");
});

describe.skip("disputeResponse", () => {
it("returns if the RPC client sent the dispute");
it("throws if the RPC client fails");
});

describe.skip("pledgeForDispute", () => {
it("returns if the RPC client sent the pledge");
it("throws if the RPC client fails");
});

describe.skip("pledgeAgainsDispute", () => {
it("returns if the RPC client sent the pledge");
it("throws if the RPC client fails");
});

describe.skip("finalize", () => {
it("returns if the RPC client finalizes the pledge");
it("throws if the RPC client fails");
});

describe("createRequest", () => {
it("succeeds if the RPC client sent the request", async () => {
const mockEpoch = BigInt(1);
Expand Down

0 comments on commit 9bd4286

Please sign in to comment.