Skip to content

Commit f854b9d

Browse files
committed
Scope tests passing
1 parent b9d3294 commit f854b9d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

topics/about_scope.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $(document).ready(function(){
66
thisIsAGlobalVariable = 77;
77

88
test("global variables", function() {
9-
equals(thisIsAGlobalVariable, __, 'is thisIsAGlobalVariable defined in this scope?');
9+
equals(thisIsAGlobalVariable, 77, 'is thisIsAGlobalVariable defined in this scope?');
1010
});
1111

1212
test("variables declared inside of a function", function() {
@@ -15,20 +15,20 @@ $(document).ready(function(){
1515
// this is a self-invoking function. Notice that it calls itself at the end ().
1616
(function() {
1717
var innerVariable = "inner";
18-
equals(outerVariable, __, 'is outerVariable defined in this scope?');
19-
equals(innerVariable, __, 'is innerVariable defined in this scope?');
18+
equals(outerVariable, "outer", 'is outerVariable defined in this scope?');
19+
equals(innerVariable, "inner", 'is innerVariable defined in this scope?');
2020
})();
2121

22-
equals(outerVariable, __, 'is outerVariable defined in this scope?');
22+
equals(outerVariable, "outer", 'is outerVariable defined in this scope?');
2323
var isInnerVariableDefined = true;
2424
try {
2525
innerVariable
2626
} catch(e) {
2727
isInnerVariableDefined = false;
2828
}
29-
equals(isInnerVariableDefined, __, 'is innerVariable defined in this scope?');
29+
equals(isInnerVariableDefined, false, 'is innerVariable defined in this scope?');
3030
});
3131

3232

3333
});
34-
34+

0 commit comments

Comments
 (0)