EatTheBlocks Forum

Multisig wallet: createTransfer test, expectRevert function

The test keeps failing, i think i am using expectRevert currectly, checked from course’s github as well.
it(“should NOT create transfers if sender is not approved”, async () => {
await expectRevert(
wallet.createTransfer(100, accounts[5], { from: accounts[4] }),
“only approver allowed”
);
});

error -

Contract: Wallet
✓ should have correct approvers & quorum (69ms)
✓ should create transfers (96ms)
1) should NOT create transfers if sender is not approved
> No events were emitted

2 passing (857ms)
1 failing

  1. Contract: Wallet
    should NOT create transfers if sender is not approved:
    AssertionError: Expected an exception but none was received
    ** at expectException (node_modules/@openzeppelin/test-helpers/src/expectRevert.js:25:10)**
    ** at process._tickCallback (internal/process/next_tick.js:68:7)**

For this question I answered you on the private chat I believe.