mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-15 12:21:05 +00:00
jstd failing test case for cory
This commit is contained in:
parent
82cb18db28
commit
29309e0e5a
2 changed files with 3 additions and 0 deletions
|
|
@ -225,5 +225,7 @@ angularWidget('NG:SWITCH', function ngSwitch(element){
|
|||
return on == when;
|
||||
},
|
||||
route: function(on, when) {
|
||||
this.name = 'misko';
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue