aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScopeTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ScopeTest.js')
-rw-r--r--test/ScopeTest.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ScopeTest.js b/test/ScopeTest.js
index b066f0cb..24febf19 100644
--- a/test/ScopeTest.js
+++ b/test/ScopeTest.js
@@ -83,8 +83,9 @@ ScopeTest.prototype.testGlobalFunctionAccess =function(){
ScopeTest.prototype.testValidationEval = function(){
expectAsserts(4);
var scope = new Scope();
+ scope.set("name", "misko");
angular.validator.testValidator = function(value, expect){
- assertEquals(scope, this.scope);
+ assertEquals("misko", this.name);
return value == expect ? null : "Error text";
};