Upgrade prettier before it will be removed forever

This commit is contained in:
SleepWalker
2020-05-20 19:35:52 +03:00
parent 39576c0480
commit 2d903f96fc
108 changed files with 422 additions and 547 deletions

View File

@@ -69,10 +69,7 @@ describe('<PopupStack />', () => {
};
const component = shallow(<PopupStack {...props} />);
component
.find(DummyPopup)
.last()
.prop('onClose')();
component.find(DummyPopup).last().prop('onClose')();
expect(props.destroy, 'was called once');
expect(props.destroy, 'to have a call satisfying', [

View File

@@ -27,7 +27,7 @@ function popups(state: Array<PopupConfig> = [], { type, payload }: Action) {
return state.concat(payload);
case 'POPUP_DESTROY':
return state.filter(popup => popup !== payload);
return state.filter((popup) => popup !== payload);
default:
return state;
}