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

@@ -31,14 +31,23 @@ describe('QueryTable', () => {
expect(React.isValidElement(<QueryTable />)).toBe(true);
});
it('is valid with props', () => {
expect(
React.isValidElement(<QueryTable {...mockedProps} />),
).toBe(true);
expect(React.isValidElement(<QueryTable {...mockedProps} />)).toBe(true);
});
it('renders a proper table', () => {
const wrapper = shallow(<QueryTable {...mockedProps} />);
expect(wrapper.find(Table)).toHaveLength(1);
expect(wrapper.find(Table).shallow().find('table')).toHaveLength(1);
expect(wrapper.find(Table).shallow().find('table').find('Tr')).toHaveLength(2);
expect(
wrapper
.find(Table)
.shallow()
.find('table'),
).toHaveLength(1);
expect(
wrapper
.find(Table)
.shallow()
.find('table')
.find('Tr'),
).toHaveLength(2);
});
});