diff options
| author | Misko Hevery | 2011-02-07 15:29:56 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-02-16 00:49:15 -0500 |
| commit | 23b255a8b7481ff5c06004b3558c07f981c42276 (patch) | |
| tree | 57e612f658c9f8903d93a28e9095590178e2ce3a /test/CompilerSpec.js | |
| parent | e2154cbc0b9265bea04ce328879d4e9bf1c67c51 (diff) | |
| download | angular.js-23b255a8b7481ff5c06004b3558c07f981c42276.tar.bz2 | |
remove $init on scope from applying compilation template
Closes #40
Diffstat (limited to 'test/CompilerSpec.js')
| -rw-r--r-- | test/CompilerSpec.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js index 291a5011..647cc366 100644 --- a/test/CompilerSpec.js +++ b/test/CompilerSpec.js @@ -28,7 +28,6 @@ describe('compiler', function(){ compile = function(html){ var e = jqLite("<div>" + html + "</div>"); var scope = compiler.compile(e)(e); - scope.$init(); return scope; }; }); @@ -48,10 +47,8 @@ describe('compiler', function(){ }; }; var template = compiler.compile(e); - scope = template(e); - var init = scope.$init; expect(log).toEqual("found"); - init(); + scope = template(e); expect(e.hasClass('ng-directive')).toEqual(true); expect(log).toEqual("found:init"); }); |
