mirror of
https://github.com/apache/superset.git
synced 2026-04-13 13:18:25 +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:
@@ -21,9 +21,9 @@ import React from 'react';
|
||||
import sinon from 'sinon';
|
||||
import { shallow, mount } from 'enzyme';
|
||||
|
||||
import CheckboxControl from '../../../../src/explore/components/controls/CheckboxControl';
|
||||
import ControlHeader from '../../../../src/explore/components/ControlHeader';
|
||||
import Checkbox from '../../../../src/components/Checkbox';
|
||||
import CheckboxControl from 'src/explore/components/controls/CheckboxControl';
|
||||
import ControlHeader from 'src/explore/components/ControlHeader';
|
||||
import Checkbox from 'src/components/Checkbox';
|
||||
|
||||
const defaultProps = {
|
||||
name: 'show_legend',
|
||||
@@ -54,10 +54,7 @@ describe('CheckboxControl', () => {
|
||||
|
||||
fullComponent.instance().forceUpdate();
|
||||
|
||||
fullComponent
|
||||
.find('label span')
|
||||
.last()
|
||||
.simulate('click');
|
||||
fullComponent.find('label span').last().simulate('click');
|
||||
|
||||
expect(spy.calledOnce).toBe(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user