#313: improve logging in auth states

This commit is contained in:
SleepWalker
2017-03-02 07:58:33 +02:00
parent 09baa2a398
commit e9e04d8336
10 changed files with 30 additions and 9 deletions

View File

@@ -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');