Prettify the frontend code (#8648)

* Add Prettier global configs

* Format js/jsx/ts/tsx/less files
This commit is contained in:
Erik Ritter
2019-11-27 14:02:48 -08:00
committed by GitHub
parent e21f768a92
commit 44d919c757
398 changed files with 8700 additions and 6117 deletions

View File

@@ -29,7 +29,7 @@ describe('Checkbox', () => {
};
let wrapper;
const factory = (o) => {
const factory = o => {
const props = Object.assign({}, defaultProps, o);
return shallow(<Checkbox {...props} />);
};
@@ -49,7 +49,10 @@ describe('Checkbox', () => {
});
it('unchecks when clicked', () => {
expect(wrapper.find('i.fa-check.text-transparent')).toHaveLength(0);
wrapper.find('i').first().simulate('click');
wrapper
.find('i')
.first()
.simulate('click');
expect(defaultProps.onChange.calledOnce).toBe(true);
});
});