aboutsummaryrefslogtreecommitdiffstats
path: root/test/directive/ngSwitchSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/directive/ngSwitchSpec.js')
-rw-r--r--test/directive/ngSwitchSpec.js10
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();