diff options
| -rw-r--r-- | test/directivesSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 278f9c4c..f0eb5c09 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -216,6 +216,12 @@ describe("directives", function(){ }); }); + it('should silently ignore undefined ng:style', function() { + var scope = compile('<div ng:style="myStyle"></div>'); + scope.$eval(); + expect(element.hasClass('ng-exception')).toBeFalsy(); + }); + it('should ng:show', function(){ var scope = compile('<div ng:hide="hide"></div>'); scope.$eval(); |
