Skip to content

Commit

Permalink
fixing broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benlongstaff committed Apr 22, 2022
1 parent c891daa commit cf469e5
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 94 deletions.
6 changes: 3 additions & 3 deletions packages/contracts/test/LUSDTokenTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ contract('LUSDToken', async accounts => {
if (!withProxy) {
it("approve(): reverts when spender param is address(0)", async () => {
const txPromise = lusdTokenTester.approve(ZERO_ADDRESS, 100, {from: bob})
await assertAssert(txPromise)
await assertRevert(txPromise)
})

it("approve(): reverts when owner param is address(0)", async () => {
const txPromise = lusdTokenTester.callInternalApprove(ZERO_ADDRESS, alice, dec(1000, 18), {from: bob})
await assertAssert(txPromise)
await assertRevert(txPromise)
})
}

Expand Down Expand Up @@ -371,7 +371,7 @@ contract('LUSDToken', async accounts => {
deadline, v, r, s), 'LUSD: invalid signature')

// Check that the zero address fails
await assertAssert(lusdTokenTester.permit('0x0000000000000000000000000000000000000000',
await assertRevert(lusdTokenTester.permit('0x0000000000000000000000000000000000000000',
approve.spender, approve.value, deadline, '0x99', r, s))
})

Expand Down
Loading

0 comments on commit cf469e5

Please sign in to comment.