Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c29dc1a

Browse files
committed
fixed wrong tests which did not have matched tags
1 parent 0396054 commit c29dc1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/widgetsSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ describe("widget", function(){
243243
});
244244

245245
it("should match urls", function(){
246-
var scope = angular.compile('<ng:switch on="url" using="route:params"><div ng-switch-when="/Book/:name">{{params.name}}</div></ng:include>');
246+
var scope = angular.compile('<ng:switch on="url" using="route:params"><div ng-switch-when="/Book/:name">{{params.name}}</div></ng:switch>');
247247
scope.url = '/Book/Moby';
248248
scope.$init();
249249
expect(scope.$element.text()).toEqual('Moby');
@@ -256,7 +256,7 @@ describe("widget", function(){
256256
});
257257

258258
it('should call init on switch', function(){
259-
var scope = angular.compile('<ng:switch on="url" change="name=\'works\'"><div ng-switch-when="a">{{name}}</div></ng:include>');
259+
var scope = angular.compile('<ng:switch on="url" change="name=\'works\'"><div ng-switch-when="a">{{name}}</div></ng:switch>');
260260
var cleared = false;
261261
scope.url = 'a';
262262
scope.$invalidWidgets = {clearOrphans: function(){

0 commit comments

Comments
 (0)