Skip to content

Commit 758c4ed

Browse files
committed
refactor: remove test case with overspecification
1 parent 3923956 commit 758c4ed

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

tests/standards/arbitrable/MetaEvidence.test.js

-27
Original file line numberDiff line numberDiff line change
@@ -707,33 +707,6 @@ describe("MetaEvidence", () => {
707707
expect(metaEvidence.scriptValid).toBeTruthy();
708708
expect(metaEvidence.metaEvidenceJSON.param).toBe(fakeJsonRpcUrl);
709709
});
710-
711-
it("should get the `arbitrableJsonRpcUrl` from `scriptParameters.arbitratorJsonRpcUrl` when `metaEvidence.arbitrableChainID === scriptParameters.arbitratorChainID` and inject it into `scriptParameters`", async () => {
712-
const arbitrableChainID = 1;
713-
const fakeJsonRpcUrl = "dummy://url";
714-
const testScript =
715-
"const getMetaEvidence = () => {resolveScript({ param: scriptParameters.arbitrableJsonRpcUrl });}";
716-
const metaEvidenceJSON = {
717-
title: "test title",
718-
description: "test description",
719-
rulingOptions: {
720-
type: "single-select",
721-
},
722-
arbitrableChainID,
723-
};
724-
725-
const arbitrableContract = await deployMetaEvidence(testScript, metaEvidenceJSON);
726-
const metaEvidence = await arbitrableInstance.getMetaEvidence(arbitrableContract.options.address, 0, {
727-
scriptParameters: {
728-
arbitratorChainID: 1,
729-
arbitratorJsonRpcUrl: fakeJsonRpcUrl,
730-
},
731-
getJsonRpcUrl: () => "dummy://yet-another-fake-url",
732-
});
733-
734-
expect(metaEvidence.scriptValid).toBeTruthy();
735-
expect(metaEvidence.metaEvidenceJSON.param).toBe(fakeJsonRpcUrl);
736-
});
737710
});
738711

739712
describe("when `arbitratorChainID` is hard-coded into meta evidence JSON", () => {

0 commit comments

Comments
 (0)