aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/FiltersTest.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/FiltersTest.js b/test/FiltersTest.js
index e6e8b662..9552c820 100644
--- a/test/FiltersTest.js
+++ b/test/FiltersTest.js
@@ -17,7 +17,8 @@ FiltersTest.prototype.testFilterThisIsContext = function(){
expectAsserts(2);
var scope = new Scope();
Scope.expressionCache = {};
- var context = {$element:123, self:{name:'misko'}};
+ scope.set('name', 'misko');
+ var context = {$element:123};
angular.filter.testFn = function () {
assertEquals('Context not equal', 123, this.$element);
assertEquals('scope not equal', 'misko', this.name);