Skip to content

Commit

Permalink
changes in test implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Jun 17, 2020
1 parent 2d3d9e4 commit 1bd6b39
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,14 @@ import { ReactWrapper } from 'enzyme';
import { EuiColorPicker, EuiIconTip } from '@elastic/eui';

describe('ColorPicker', () => {
let defaultProps: ColorPickerProps;
const defaultProps: ColorPickerProps = {
name: 'color',
value: null,
onChange: jest.fn(),
disableTrash: true,
};
let component: ReactWrapper<ColorPickerProps>;

beforeAll(() => {
defaultProps = {
name: 'color',
value: null,
onChange: jest.fn(),
disableTrash: true,
};
});

it('should render the EuiColorPicker', () => {
component = mount(<ColorPicker {...defaultProps} />);
expect(component.find(EuiColorPicker).length).toBe(1);
Expand Down

0 comments on commit 1bd6b39

Please sign in to comment.