Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
NagRock committed Jul 20, 2019
1 parent c068bf6 commit 42c09ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ foo.getBar(3); // MultipleMatchersMatchSameStubError will be thrown, two matcher
### Mocking interfaces
You can mock interfaces too, just instead of passing type to `mock` function, set `mock` function generic type
Mocking interfaces requires `Proxy` implementation
``` typescript
let mockedFoo:Foo = mock<FooInterface>(); // instead of mock(FooInterface)
Expand Down

0 comments on commit 42c09ee

Please sign in to comment.