diff options
Diffstat (limited to 'test/directive/ngNonBindableSpec.js')
| -rw-r--r-- | test/directive/ngNonBindableSpec.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/directive/ngNonBindableSpec.js b/test/directive/ngNonBindableSpec.js new file mode 100644 index 00000000..c974948d --- /dev/null +++ b/test/directive/ngNonBindableSpec.js @@ -0,0 +1,20 @@ +'use strict'; + + +describe('ng:non-bindable', function() { + var element; + + + afterEach(function(){ + dealoc(element); + }); + + + it('should prevent compilation of the owning element and its children', + inject(function($rootScope, $compile) { + element = $compile('<div ng:non-bindable><span ng:bind="name"></span></div>')($rootScope); + $rootScope.name = 'misko'; + $rootScope.$digest(); + expect(element.text()).toEqual(''); + })); +}); |
