Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1775: Default sandbox does not restore stubs, spies, mocks
This was caused by adding stub, spy, mock explicitly to apiMethods, thus shadowing the methods from Sanbox, which are the ones that collect the fakes for restoring. Removing these methods, allows the caller to use the sandbox methods, and all is well.
- Loading branch information
Showing
3 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters