diff options
Diffstat (limited to 'test/CompilerSpec.js')
| -rw-r--r-- | test/CompilerSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js index 1a93ac78..f1e1c607 100644 --- a/test/CompilerSpec.js +++ b/test/CompilerSpec.js @@ -47,7 +47,7 @@ describe('compiler', function(){ }; var template = compiler.compile(e); expect(log).toEqual("found"); - scope = template(angular.scope(), e).scope; + scope = template(angular.scope()).scope; expect(e.hasClass('ng-directive')).toEqual(true); expect(log).toEqual("found:init"); }); @@ -84,7 +84,7 @@ describe('compiler', function(){ var template = this.compile(element); return function(marker) { this.$onEval(function() { - marker.after(template(angular.scope(), true).view); + marker.after(template(angular.scope(), noop).view); }); }; }; |
