-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: support stubbed properties as well as methods (#12)
Changes the method map passed to `stubInterface` and friends to be a `Partial` of the stubbed type. This way we can pass values for properties and `Sinon.stub`s for methods, which is usually better since we freqently want to stub behaviour as well as return types which we can't do when we're just passing values. BREAKING CHANGE: method map values must now be wrapped in `Sinon.stub().returns()`
- Loading branch information
1 parent
afb8acb
commit 42413b2
Showing
4 changed files
with
61 additions
and
108 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
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