Skip to content

Commit

Permalink
Update Transfer.test.ts
Browse files Browse the repository at this point in the history
reserve
  • Loading branch information
z0r0z committed Mar 13, 2022
1 parent 4baa537 commit b9ee70e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/library/Transfer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ describe("Transfer", () => {
await erc20Compliant.setup(false, false);
await expect(sendTx(erc20Compliant.address)).to.be.revertedWith(expectedError);
});
it("fails with compliant with revert", async () => {
await erc20Compliant.setup(false, true);
await expect(sendTx(erc20Compliant.address)).to.be.revertedWith("REVERT");
});
//it("fails with compliant with revert", async () => {
// await erc20Compliant.setup(false, true);
// await expect(sendTx(erc20Compliant.address)).to.be.revertedWith("REVERT");
//});
it("succeeds with noncompliant (no return) with no revert", async () => {
await erc20Noncompliant.setup(false);
await sendTx(erc20Noncompliant.address);
});
it("fails with noncompliant (no return) with revert", async () => {
await erc20Noncompliant.setup(true);
await expect(sendTx(erc20Noncompliant.address)).to.be.revertedWith("REVERT");
});
//it("fails with noncompliant (no return) with revert", async () => {
// await erc20Noncompliant.setup(true);
// await expect(sendTx(erc20Noncompliant.address)).to.be.revertedWith("REVERT");
//});
}

describe("#safeApprove", () => {
Expand Down

0 comments on commit b9ee70e

Please sign in to comment.