mirror of
https://github.com/apache/superset.git
synced 2026-04-07 10:31:50 +00:00
test(frontend): use absolute path for src imports (#9761)
* test(frontend): use absolute path for src imports * Upgrade prettier, fix eslint
This commit is contained in:
@@ -23,8 +23,8 @@ import configureStore from 'redux-mock-store';
|
||||
import fetchMock from 'fetch-mock';
|
||||
import thunk from 'redux-thunk';
|
||||
|
||||
import DatasourceEditor from '../../../src/datasource/DatasourceEditor';
|
||||
import Field from '../../../src/CRUD/Field';
|
||||
import DatasourceEditor from 'src/datasource/DatasourceEditor';
|
||||
import Field from 'src/CRUD/Field';
|
||||
import mockDatasource from '../../fixtures/mockDatasource';
|
||||
|
||||
const props = {
|
||||
@@ -94,10 +94,7 @@ describe('DatasourceEditor', () => {
|
||||
wrapper.setState({ activeTabKey: 4 });
|
||||
expect(wrapper.state('isSqla')).toBe(true);
|
||||
expect(
|
||||
wrapper
|
||||
.find(Field)
|
||||
.find({ fieldKey: 'fetch_values_predicate' })
|
||||
.exists(),
|
||||
wrapper.find(Field).find({ fieldKey: 'fetch_values_predicate' }).exists(),
|
||||
).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user