diff options
| author | Igor Minar | 2012-03-09 00:00:05 -0800 | 
|---|---|---|
| committer | Igor Minar | 2012-03-09 16:14:26 -0800 | 
| commit | f4d338d393dabb49182d40b4fe90c4d1b51621c0 (patch) | |
| tree | 6c20fbef9865869e9db44f27c53aec11f1e30d5e /test/directive/ngSwitchSpec.js | |
| parent | 0bfaa579c04d1b7cd21fbe16bfbc47a684f223b3 (diff) | |
| download | angular.js-f4d338d393dabb49182d40b4fe90c4d1b51621c0.tar.bz2 | |
chore(*): refactor all ng: to ng-
Diffstat (limited to 'test/directive/ngSwitchSpec.js')
| -rw-r--r-- | test/directive/ngSwitchSpec.js | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/test/directive/ngSwitchSpec.js b/test/directive/ngSwitchSpec.js index 88e81dea..c61dd60d 100644 --- a/test/directive/ngSwitchSpec.js +++ b/test/directive/ngSwitchSpec.js @@ -1,6 +1,6 @@  'use strict'; -describe('ng:switch', function() { +describe('ng-switch', function() {    var element; @@ -12,9 +12,9 @@ describe('ng:switch', function() {    it('should switch on value change', inject(function($rootScope, $compile) {      element = $compile(        '<div ng-switch="select">' + -        '<div ng:switch-when="1">first:{{name}}</div>' + -        '<div ng:switch-when="2">second:{{name}}</div>' + -        '<div ng:switch-when="true">true:{{name}}</div>' + +        '<div ng-switch-when="1">first:{{name}}</div>' + +        '<div ng-switch-when="2">second:{{name}}</div>' + +        '<div ng-switch-when="true">true:{{name}}</div>' +        '</div>')($rootScope);      expect(element.html()).toEqual(          '<!-- ngSwitchWhen: 1 --><!-- ngSwitchWhen: 2 --><!-- ngSwitchWhen: true -->'); @@ -53,7 +53,7 @@ describe('ng:switch', function() {    it('should call change on switch', inject(function($rootScope, $compile) {      element = $compile(        '<ng:switch on="url" change="name=\'works\'">' + -        '<div ng:switch-when="a">{{name}}</div>' + +        '<div ng-switch-when="a">{{name}}</div>' +        '</ng:switch>')($rootScope);      $rootScope.url = 'a';      $rootScope.$apply();  | 
