Skip to content

Commit cf47cc2

Browse files
committed
2 parents e71649d + b4d698e commit cf47cc2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ import { Arg } from '@fluffy-spoon/substitute';
5858
calculator.add(Arg.any(), 2).returns(10);
5959
console.log(calculator.add(1337, 3)); //prints undefined since second argument doesn't match
6060
console.log(calculator.add(1337, 2)); //prints 10 since second argument matches
61-
calculator.received().add(Arg.any(), 3); //will not throw since a call matches
6261

63-
//ignoring arguments of specific type
64-
calculator.add(Arg.any('number'), 2).returns(10); //could also be 'array' or any string returned by the typeof operator
62+
//received call with first arg 1 and second arg less than 0
63+
calculator.received().add(1, Arg.is<number>(x => x < 0));
6564
```
6665

6766
## What is this - black magic?

0 commit comments

Comments
 (0)