We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e541e2b commit f2e4ff4Copy full SHA for f2e4ff4
README.md
@@ -122,7 +122,7 @@ var fakeCalculator = Substitute.for<Calculator>();
122
//let the subtract method always use the real method
123
fakeCalculator.subtract(Arg.all()).mimicks(realCalculator.subtract);
124
console.log(fakeCalculator.subtract(20, 10)); //prints 10
125
-console.log(fakeCalculator.subtract(1, 2)); //prints 10
+console.log(fakeCalculator.subtract(1, 2)); //prints -1
126
127
//for the add method, we only use the real method when the first arg is less than 10
128
//else, we always return 1337
@@ -182,4 +182,4 @@ However, it is only needed for your test projects anyway.
182
"strictNullChecks": false
183
}
184
185
-```
+```
0 commit comments