Skip to content

Commit 4fbb92b

Browse files
authored
Fix "ReferenceError: calculator is not defined"
1 parent ccc0e93 commit 4fbb92b

File tree

1 file changed

+2
-2
lines changed
  • 1-js/06-advanced-functions/09-call-apply-decorators/01-spy-decorator/_js.view

1 file changed

+2
-2
lines changed

1-js/06-advanced-functions/09-call-apply-decorators/01-spy-decorator/_js.view/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ describe("spy", function() {
3636

3737
calc.wrappedSum = spy(calc.sum);
3838

39-
assert.equal(calculator.wrappedSum(1, 2), 3);
39+
assert.equal(calc.wrappedSum(1, 2), 3);
4040
assert(calc.sum.calledWith(1, 2));
41-
assert(calc.sum.calledOn(calculator));
41+
assert(calc.sum.calledOn(calc));
4242
});
4343

4444
});

0 commit comments

Comments
 (0)