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 e1155e2 commit c068bf6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ 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
``` typescript
let mockedFoo:Foo = mock<FooInterface>(); // instead of mock(FooInterface)
```
### Mocking types
You can mock abstract classes
Expand Down

0 comments on commit c068bf6

Please sign in to comment.