diff options
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}'); |
