Closed Lexicality closed 9 years ago
The mock function modifies a table in-place but provides no method of de-mocking it. Thus if you wish to re-use a table you must duplicate it and mock that instead. This is in contrast to spies and stubs both of which have a revert method
mock
revert
@Lexicality try out PR #85. This allows for easy de-mock via mock.revert.
mock.revert
The
mock
function modifies a table in-place but provides no method of de-mocking it. Thus if you wish to re-use a table you must duplicate it and mock that instead. This is in contrast to spies and stubs both of which have arevert
method