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/directivesSpec.js | |
| parent | e2154cbc0b9265bea04ce328879d4e9bf1c67c51 (diff) | |
| download | angular.js-23b255a8b7481ff5c06004b3558c07f981c42276.tar.bz2 | |
remove $init on scope from applying compilation template
Closes #40
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index caf0bc15..8e5a10ee 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -7,7 +7,6 @@ describe("directive", function(){ compile = function(html) { element = jqLite(html); model = compiler.compile(element)(element); - model.$init(); return model; }; }); @@ -116,7 +115,7 @@ describe("directive", function(){ expect(element.attr('src')).toEqual('http://localhost/mysrc'); expect(element.attr('alt')).toEqual('myalt'); }); - + it('should not pretty print JSON in attributes', function(){ var scope = compile('<img alt="{{ {a:1} }}"/>'); expect(element.attr('alt')).toEqual('{"a":1}'); |
