2019-10-07 10:36:24 +02:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
import { shallow } from 'enzyme';
|
2020-02-22 00:28:53 +01:00
|
|
|
import { LensFieldIcon } from './lens_field_icon';
|
2019-10-07 10:36:24 +02:00
|
|
|
|
|
|
|
test('LensFieldIcon renders properly', () => {
|
|
|
|
const component = shallow(<LensFieldIcon type={'date'} />);
|
|
|
|
expect(component).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
|
2020-02-22 00:28:53 +01:00
|
|
|
test('LensFieldIcon accepts FieldIcon props', () => {
|
|
|
|
const component = shallow(<LensFieldIcon type={'date'} fill={'none'} />);
|
|
|
|
expect(component).toMatchSnapshot();
|
2019-10-07 10:36:24 +02:00
|
|
|
});
|