Skip to content

Commit f2e4ff4

Browse files
authored
Update README.md
1 parent e541e2b commit f2e4ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ var fakeCalculator = Substitute.for<Calculator>();
122122
//let the subtract method always use the real method
123123
fakeCalculator.subtract(Arg.all()).mimicks(realCalculator.subtract);
124124
console.log(fakeCalculator.subtract(20, 10)); //prints 10
125-
console.log(fakeCalculator.subtract(1, 2)); //prints 10
125+
console.log(fakeCalculator.subtract(1, 2)); //prints -1
126126

127127
//for the add method, we only use the real method when the first arg is less than 10
128128
//else, we always return 1337
@@ -182,4 +182,4 @@ However, it is only needed for your test projects anyway.
182182
"strictNullChecks": false
183183
}
184184
}
185-
```
185+
```

0 commit comments

Comments
 (0)