mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
Prettify the frontend code (#8648)
* Add Prettier global configs * Format js/jsx/ts/tsx/less files
This commit is contained in:
@@ -54,9 +54,12 @@ describe('ShareSqlLabQuery', () => {
|
||||
};
|
||||
|
||||
function setup(overrideProps) {
|
||||
const wrapper = shallow(<ShareSqlLabQuery {...defaultProps} {...overrideProps} />, {
|
||||
context: { store },
|
||||
}).dive(); // wrapped in withToasts HOC
|
||||
const wrapper = shallow(
|
||||
<ShareSqlLabQuery {...defaultProps} {...overrideProps} />,
|
||||
{
|
||||
context: { store },
|
||||
},
|
||||
).dive(); // wrapped in withToasts HOC
|
||||
|
||||
return wrapper;
|
||||
}
|
||||
@@ -80,7 +83,9 @@ describe('ShareSqlLabQuery', () => {
|
||||
return instance.getCopyUrl().then(() => {
|
||||
expect(storeQuerySpy.mock.calls).toHaveLength(1);
|
||||
expect(fetchMock.calls(storeQueryUrl)).toHaveLength(1);
|
||||
expect(storeQuerySpy.mock.calls[0][0]).toMatchObject(defaultProps.queryEditor);
|
||||
expect(storeQuerySpy.mock.calls[0][0]).toMatchObject(
|
||||
defaultProps.queryEditor,
|
||||
);
|
||||
expect(instance.state.shortUrl).toContain(storeQueryMockId);
|
||||
|
||||
return Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user