From f54db2ccda399f2677e4ca7588018cb31545a2b4 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 8 Mar 2012 15:00:38 -0800 Subject: chore(directives,widgets): reorg the code under directive/ dir --- test/directive/ngNonBindableSpec.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/directive/ngNonBindableSpec.js (limited to 'test/directive/ngNonBindableSpec.js') 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('
')($rootScope); + $rootScope.name = 'misko'; + $rootScope.$digest(); + expect(element.text()).toEqual(''); + })); +}); -- cgit v1.2.3