aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-22 22:48:48 -0700
committerMisko Hevery2010-04-22 22:48:48 -0700
commitc29dc1a940950b558eae92ba976e2c2c5aceab58 (patch)
tree9facaf03b0e24d7d00049d792e18f22b7496930e /test/widgetsSpec.js
parent0396054b4a420972e16d0d9e965eb51ecd6f86a2 (diff)
downloadangular.js-c29dc1a940950b558eae92ba976e2c2c5aceab58.tar.bz2
fixed wrong tests which did not have matched tags
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index 5b1e7b8e..b38ca2a1 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -243,7 +243,7 @@ describe("widget", function(){
});
it("should match urls", function(){
- var scope = angular.compile('<ng:switch on="url" using="route:params"><div ng-switch-when="/Book/:name">{{params.name}}</div></ng:include>');
+ var scope = angular.compile('<ng:switch on="url" using="route:params"><div ng-switch-when="/Book/:name">{{params.name}}</div></ng:switch>');
scope.url = '/Book/Moby';
scope.$init();
expect(scope.$element.text()).toEqual('Moby');
@@ -256,7 +256,7 @@ describe("widget", function(){
});
it('should call init on switch', function(){
- var scope = angular.compile('<ng:switch on="url" change="name=\'works\'"><div ng-switch-when="a">{{name}}</div></ng:include>');
+ var scope = angular.compile('<ng:switch on="url" change="name=\'works\'"><div ng-switch-when="a">{{name}}</div></ng:switch>');
var cleared = false;
scope.url = 'a';
scope.$invalidWidgets = {clearOrphans: function(){