mirror of
https://github.com/apache/superset.git
synced 2026-04-17 07:05:04 +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:
@@ -20,9 +20,8 @@ import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { Label } from 'react-bootstrap';
|
||||
|
||||
import TooltipWrapper from './../../../../src/components/TooltipWrapper';
|
||||
|
||||
import RowCountLabel from '../../../../src/explore/components/RowCountLabel';
|
||||
import TooltipWrapper from 'src/components/TooltipWrapper';
|
||||
import RowCountLabel from 'src/explore/components/RowCountLabel';
|
||||
|
||||
describe('RowCountLabel', () => {
|
||||
const defaultProps = {
|
||||
@@ -46,11 +45,6 @@ describe('RowCountLabel', () => {
|
||||
limit: 100,
|
||||
};
|
||||
const wrapper = shallow(<RowCountLabel {...props} />);
|
||||
expect(
|
||||
wrapper
|
||||
.find(Label)
|
||||
.first()
|
||||
.props().bsStyle,
|
||||
).toBe('danger');
|
||||
expect(wrapper.find(Label).first().props().bsStyle).toBe('danger');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user