jstd failing test case for cory

This commit is contained in:
Misko Hevery 2010-04-07 10:35:54 -07:00
parent 82cb18db28
commit 29309e0e5a
2 changed files with 3 additions and 0 deletions

View file

@ -225,5 +225,7 @@ angularWidget('NG:SWITCH', function ngSwitch(element){
return on == when;
},
route: function(on, when) {
this.name = 'misko';
return true;
}
});

View file

@ -210,6 +210,7 @@ describe('ng:switch', function(){
var scope = compile('<ng:switch on="url" using="route"><div ng-switch-when="/Book/:name">{{name}}</div></ng:include>');
scope.url = '/Book/Moby';
scope.$init();
// jstestdriver.console.log('text');
expect(scope.$element.text()).toEqual('Moby');
});