Closed glureau closed 2 years ago
mocker.verify was not checking the receiver due to a typo error in the assertion method. As a result, if 2 mock instances of the same class were tested, the order can be wrong and the verify method still return success.
mocker.verify
if (receiver !== receiver) 😱 😱 😱
if (receiver !== receiver)
I feel so ashamed !
Thanks a lot for catching that !
mocker.verify
was not checking the receiver due to a typo error in the assertion method. As a result, if 2 mock instances of the same class were tested, the order can be wrong and the verify method still return success.