diff options
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index eb8a9785..42869a05 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -44,6 +44,15 @@ describe("directives", function(){ expect(lowercase(element.html())).toEqual('<div>hello</div>'); }); + it('should ng-bind element', function() { + angularFilter.myElement = function() { + return jqLite('<a>hello</a>'); + }; + var scope = compile('<div ng-bind="0|myElement"></div>'); + scope.$eval(); + expect(lowercase(element.html())).toEqual('<a>hello</a>'); + }); + it('should ng-bind-template', function() { var scope = compile('<div ng-bind-template="Hello {{name}}!"></div>'); scope.$set('name', 'Misko'); |
