diff --git a/test/Collateral.test.js b/test/Collateral.test.js index 0fdab4f..4ceea35 100644 --- a/test/Collateral.test.js +++ b/test/Collateral.test.js @@ -44,7 +44,7 @@ describe("Collateral", function () { let allowed = await token.allowance(account0.address, collateral.address) let invalidAmount = allowed.toNumber() + 1 await expect(collateral.deposit(invalidAmount)).to.be.revertedWith( - "ERC20: transfer amount exceeds allowance" + "ERC20: insufficient allowance" ) }) }) diff --git a/test/Marketplace.test.js b/test/Marketplace.test.js index a29c3ce..eaf730c 100644 --- a/test/Marketplace.test.js +++ b/test/Marketplace.test.js @@ -62,7 +62,7 @@ describe("Marketplace", function () { let insufficient = request.maxPrice - 1 await token.approve(marketplace.address, insufficient) await expect(marketplace.requestStorage(request)).to.be.revertedWith( - "ERC20: transfer amount exceeds allowance" + "ERC20: insufficient allowance" ) })