diff options
Diffstat (limited to 'test/directive/ngShowHideSpec.js')
| -rw-r--r-- | test/directive/ngShowHideSpec.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/directive/ngShowHideSpec.js b/test/directive/ngShowHideSpec.js index 6b9aea24..5005274d 100644 --- a/test/directive/ngShowHideSpec.js +++ b/test/directive/ngShowHideSpec.js @@ -1,6 +1,6 @@ 'use strict'; -describe('ng:show / ng:hide', function() { +describe('ng-show / ng-hide', function() { var element; @@ -8,9 +8,9 @@ describe('ng:show / ng:hide', function() { dealoc(element); }); - describe('ng:show', function() { + describe('ng-show', function() { it('should show and hide an element', inject(function($rootScope, $compile) { - element = jqLite('<div ng:show="exp"></div>'); + element = jqLite('<div ng-show="exp"></div>'); element = $compile(element)($rootScope); $rootScope.$digest(); expect(isCssVisible(element)).toEqual(false); @@ -21,7 +21,7 @@ describe('ng:show / ng:hide', function() { it('should make hidden element visible', inject(function($rootScope, $compile) { - element = jqLite('<div style="display: none" ng:show="exp"></div>'); + element = jqLite('<div style="display: none" ng-show="exp"></div>'); element = $compile(element)($rootScope); expect(isCssVisible(element)).toBe(false); $rootScope.exp = true; @@ -30,9 +30,9 @@ describe('ng:show / ng:hide', function() { })); }); - describe('ng:hide', function() { + describe('ng-hide', function() { it('should hide an element', inject(function($rootScope, $compile) { - element = jqLite('<div ng:hide="exp"></div>'); + element = jqLite('<div ng-hide="exp"></div>'); element = $compile(element)($rootScope); expect(isCssVisible(element)).toBe(true); $rootScope.exp = true; |
