We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ece4a5 + 8c6f614 commit 501d561Copy full SHA for 501d561
1-js/06-advanced-functions/09-call-apply-decorators/01-spy-decorator/_js.view/test.js
@@ -24,7 +24,7 @@ describe("spy", function() {
24
let wrappedSum = spy(sum);
25
26
assert.equal(wrappedSum(1, 2), 3);
27
- assert(spy.calledWith(1, 2));
+ assert(sum.calledWith(1, 2));
28
});
29
30
@@ -37,8 +37,8 @@ describe("spy", function() {
37
calc.wrappedSum = spy(calc.sum);
38
39
assert.equal(calculator.wrappedSum(1, 2), 3);
40
41
- assert(spy.calledOn(calculator));
+ assert(calc.sum.calledWith(1, 2));
+ assert(calc.sum.calledOn(calculator));
42
43
44
-});
+});
0 commit comments