diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/widgetsSpec.js | 4 |
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(){ |
