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('
'); + scope.$eval(); + expect(element.hasClass('ng-exception')).toBeFalsy(); + }); + it('should ng:show', function(){ var scope = compile('
'); scope.$eval();