mirror of
https://github.com/apache/superset.git
synced 2026-04-22 09:35:23 +00:00
Prettify the frontend code (#8648)
* Add Prettier global configs * Format js/jsx/ts/tsx/less files
This commit is contained in:
@@ -31,9 +31,7 @@ const mockStore = configureStore([thunk]);
|
||||
const store = mockStore({});
|
||||
|
||||
const dashboardsEndpoint = 'glob:*/dashboardasync/api/read*';
|
||||
const mockDashboards = [
|
||||
{ id: 1, url: 'url', dashboard_title: 'title' },
|
||||
];
|
||||
const mockDashboards = [{ id: 1, url: 'url', dashboard_title: 'title' }];
|
||||
|
||||
fetchMock.get(dashboardsEndpoint, { result: mockDashboards });
|
||||
|
||||
@@ -50,7 +48,7 @@ describe('DashboardTable', () => {
|
||||
expect(wrapper.find(Loading)).toHaveLength(1);
|
||||
});
|
||||
|
||||
it('fetches dashboards and renders a Table', (done) => {
|
||||
it('fetches dashboards and renders a Table', done => {
|
||||
const wrapper = setup();
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user