Closed maurelian closed 3 years ago
I wanted to test that under a certain condition, no call is made to a contract. Using smock I would do something like:
expect(Mock__OVM_L2ToL1MessagePasser.smocked.sendMessage.calls.length).to.deep.equal(0)
That results in the same error in the above description (TypeError: Cannot read property 'map' of undefined). If it helps for context, here is what I wrote instead.
TypeError: Cannot read property 'map' of undefined
I wanted to test that under a certain condition, no call is made to a contract. Using smock I would do something like:
expect(Mock__OVM_L2ToL1MessagePasser.smocked.sendMessage.calls.length).to.deep.equal(0)
That results in the same error in the above description (
TypeError: Cannot read property 'map' of undefined
). If it helps for context, here is what I wrote instead.