diff options
| author | Misko Hevery | 2010-05-07 13:43:54 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-05-07 13:43:54 -0700 |
| commit | 0305b6746e2c50960b042c5d687794e030930f8b (patch) | |
| tree | ad8d670fad3a7ba93bc0efd443a5308e8a065235 /test/directivesSpec.js | |
| parent | 038a743e6f49c347a38edc0e54dcbb175905a475 (diff) | |
| download | angular.js-0305b6746e2c50960b042c5d687794e030930f8b.tar.bz2 | |
change everything over to jasmine
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'); |
