Skip to content

Commit 8c511a1

Browse files
authored
Update README.md
1 parent 698ca4c commit 8c511a1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,11 @@ console.log(calculator.add(1337, 2)); //prints 10 since second argument matches
5858

5959
//received call with first arg 1 and second arg less than 0
6060
calculator.received().add(1, Arg.is(x => x < 0));
61-
```
61+
```
62+
63+
# Benefits over other mocking libraries
64+
- Easier-to-understand fluent syntax.
65+
- No need to cast to `any` in certain places (for instance, when overriding read-only properties) due to the `myProperty.returns(...)` syntax.
66+
- Doesn't weigh much.
67+
- Produces very clean and descriptive error messages. Try it out - you'll love it.
68+
- Doesn't rely on object instances - you can produce a strong-typed fake from nothing, ensuring that everything is mocked.

0 commit comments

Comments
 (0)