mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
#313: improve logging in auth states
This commit is contained in:
@@ -14,7 +14,7 @@ describe('<ChangePassword />', () => {
|
||||
|
||||
|
||||
it('should call onSubmit if passwords entered', () => {
|
||||
const onSubmit = sinon.spy().named('onSubmit');
|
||||
const onSubmit = sinon.spy(() => ({catch: () => {}})).named('onSubmit');
|
||||
const component = shallow(<ChangePassword onSubmit={onSubmit} />);
|
||||
|
||||
component.find('Form').simulate('submit');
|
||||
|
Reference in New Issue
Block a user