Skip to content

Commit

Permalink
remove commented out tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mejango committed Jul 25, 2023
1 parent 4edad42 commit f9add2f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 47 deletions.
22 changes: 0 additions & 22 deletions test/jb_payment_terminal_3_1_2/add_to_balance_of.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,26 +798,4 @@ describe('JBPayoutRedemptionPaymentTerminal3_1_2::addToBalanceOf(...)', function
}),
).to.be.revertedWith(errors.NO_MSG_VALUE_ALLOWED);
});

// it("Can't add to balance if terminal doesn't belong to project", async function () {
// const { caller, jbEthPaymentTerminal, mockJbDirectory } = await setup();

// const otherProjectId = 18;
// await mockJbDirectory.mock.isTerminalOf
// .withArgs(otherProjectId, jbEthPaymentTerminal.address)
// .returns(false);

// await expect(
// jbEthPaymentTerminal
// .connect(caller)
// ['addToBalanceOf(uint256,uint256,address,string,bytes)'](
// otherProjectId,
// AMOUNT,
// ETH_ADDRESS,
// MEMO,
// METADATA,
// { value: 0 },
// ),
// ).to.be.revertedWith(errors.PROJECT_TERMINAL_MISMATCH);
// });
});
25 changes: 0 additions & 25 deletions test/jb_payment_terminal_3_1_2/pay.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,31 +854,6 @@ describe('JBPayoutRedemptionPaymentTerminal3_1_2::pay(...)', function () {
).to.be.revertedWith(errors.PAY_TO_ZERO_ADDRESS);
});

// it("Can't pay if current terminal doesn't belong to project", async function () {
// const { caller, jbEthPaymentTerminal, mockJbDirectory } = await setup();

// const otherProjectId = 18;
// await mockJbDirectory.mock.isTerminalOf
// .withArgs(otherProjectId, jbEthPaymentTerminal.address)
// .returns(false);

// await expect(
// jbEthPaymentTerminal
// .connect(caller)
// .pay(
// otherProjectId,
// ETH_TO_PAY,
// ethers.constants.AddressZero,
// ethers.constants.AddressZero,
// MIN_TOKEN_REQUESTED,
// PREFER_CLAIMED_TOKENS,
// MEMO,
// METADATA1,
// { value: ETH_TO_PAY },
// ),
// ).to.be.revertedWith(errors.PROJECT_TERMINAL_MISMATCH);
// });

it("Can't pay if minted tokens for beneficiary is less than expected", async function () {
const { caller, jbEthPaymentTerminal, mockJBPaymentTerminalStore, beneficiary, timestamp } =
await setup();
Expand Down

0 comments on commit f9add2f

Please sign in to comment.