Skip to content

Commit

Permalink
fix(mocks): Fixes crash on multi expect
Browse files Browse the repository at this point in the history
  • Loading branch information
georgejecook committed May 10, 2020
1 parent b30d44e commit e02f96c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/BaseTestSuite.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,7 @@ public function Mock(target, methodName, expectedInvocations = 1, expectedArgs =
mock = m.mocks[id]
if mock <> invalid and mock.methodName = methodName and mock.target.__rooibosTargetId = target.__rooibosTargetId
fake = mock
fake.lineNumbers.push(lineNumber)
exit for
end if
end for
Expand Down

0 comments on commit e02f96c

Please sign in to comment.