You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps related but, is there a way to mock the return value of some mocked function? How are people mocking 3rd party modules that are integrated with their own code if not?
I wonder whether there's a better way to use busted in the following use case.
I'm using OOP as outlined here: http://lua-users.org/wiki/ObjectOrientationTutorial. Googling for OOP (object oriented, etc.) along with busted didn't yield any useful results, thus this issue.
I've got this class (production code):
I'm trying to mock functions and assert on the calls being made. Here's my test code
There are a couple of questions:
m
andn
?mock.revert(n) mock.revert(m)
hang butsnapshot:revert()
seems to workThe text was updated successfully, but these errors were encountered: