diff options
| author | Misko Hevery | 2011-02-13 16:13:21 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-02-16 08:59:57 -0500 |
| commit | c90abf057b0370cf5beb62aa960f1df008c802ef (patch) | |
| tree | 039525ec1ee518175010693efd278fa105815285 /test/CompilerSpec.js | |
| parent | cdc093a463e8f8a925cbb9f2b55bedf0a1d8e7e8 (diff) | |
| download | angular.js-c90abf057b0370cf5beb62aa960f1df008c802ef.tar.bz2 | |
Changed the angular.compile(element)(scope[, cloneAttachNode])
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); }); }; }; |
