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
Use case is in ui-router state params for example, where you might want to assert that a state of a given name exists as part of the state's configuration, but that no default value has been assigned to it.
Current spec
it('should not set a default value for the dateFrom param',function(){expect($state.params).toHaveMember('dateFrom');expect($state.params.dateFrom).toBeUndefined();});
Current output
Expected member "dateFrom" of Object({ }) to be member.
Expected undefined not to be undefined
Preferred spec
it('should not set a default value for the dateFrom param',function(){expect($state.params).toHaveUndefined('dateFrom');});
Preferred output
Expected Object({ }) to have undefined member "dateFrom".
The text was updated successfully, but these errors were encountered:
Use case is in ui-router state params for example, where you might want to assert that a state of a given name exists as part of the state's configuration, but that no default value has been assigned to it.
Current spec
Current output
Preferred spec
Preferred output
The text was updated successfully, but these errors were encountered: