You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should go over the states and location correctly', function () {
$location.path('/home1');
$rootScope.$digest();
expect($state.current.name).toBe('home1');
expect($state.current.url).toBe('/home1');
expect($location.path()).toBe('/home1');
$location.path('/mystate');
$rootScope.$digest();
expect($state.current.name).toBe('myState');
expect($state.current.url).toBe('/mystate');
expect($location.path()).toBe('/mystate');
$location.path('/home1');
$rootScope.$digest();
expect($state.current.name).toBe('myState');
expect($state.current.url).toBe('/mystate');
**expect($location.path()).toBe('/mystate');** - I think the test should run correctly on this line
but I have an error: Expected '/home1' to be '/mystate'. :(
});
The text was updated successfully, but these errors were encountered:
I have code:
I also have test:
The text was updated successfully, but these errors were encountered: