Skip to content

Commit

Permalink
properly test for MissingOriginalConsiderationItems
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Apr 23, 2022
1 parent 20a486e commit 9e8589e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10512,9 +10512,10 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
1 // PARTIAL_OPEN
);

// Remove a consideration item
// Remove a consideration item, but do not reduce
// totalOriginalConsiderationItems as MissingOriginalConsiderationItems
// is being tested for
order.parameters.consideration.pop();
order.parameters.totalOriginalConsiderationItems--;

const orderStatus = await marketplaceContract.getOrderStatus(orderHash);

Expand All @@ -10528,7 +10529,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
marketplaceContract
.connect(buyer)
.fulfillAdvancedOrder(order, [], toAddress(false), { value })
).to.be.reverted;
).to.be.revertedWith("MissingOriginalConsiderationItems");
});
});
it("Reverts on invalid submitter when required by order", async () => {
Expand Down

0 comments on commit 9e8589e

Please sign in to comment.