Skip to content

Commit

Permalink
Update tests and snapshots (#612) (#613)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wei <[email protected]>
(cherry picked from commit 59dde2c)

Co-authored-by: Eric Wei <[email protected]>
  • Loading branch information
1 parent 3f7b601 commit 63cf078
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 400 deletions.
Original file line number Diff line number Diff line change
@@ -1,93 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Shared components Renders empty placeholder component 1`] = `
<EmptyPlaceholder
icon={[Function]}
>
<EuiText
className="lnsChart__empty"
color="subdued"
size="xs"
textAlign="center"
>
<div
className="euiText euiText--extraSmall lnsChart__empty"
>
<EuiTextAlign
textAlign="center"
>
<div
className="euiTextAlign euiTextAlign--center"
>
<EuiTextColor
color="subdued"
component="div"
>
<div
className="euiTextColor euiTextColor--subdued"
>
<EuiIcon
color="subdued"
size="l"
type={[Function]}
>
<LensIconChartBar
aria-hidden={true}
className="euiIcon euiIcon--large euiIcon--subdued"
focusable="false"
role="img"
style={null}
>
<svg
aria-hidden={true}
className="euiIcon euiIcon--large euiIcon--subdued"
fill="none"
focusable="false"
height={22}
role="img"
style={null}
viewBox="0 0 30 22"
width={30}
xmlns="http://www.w3.org/2000/svg"
>
<path
className="lensChartIcon__subdued"
d="M5 7a1 1 0 011 1v13a1 1 0 01-1 1H1a1 1 0 01-1-1V8a1 1 0 011-1h4zm16-7a1 1 0 011 1v20a1 1 0 01-1 1h-4a1 1 0 01-1-1V1a1 1 0 011-1h4z"
/>
<path
className="lensChartIcon__accent"
d="M13 11a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1v-9a1 1 0 011-1h4zm16-7a1 1 0 011 1v16a1 1 0 01-1 1h-4a1 1 0 01-1-1V5a1 1 0 011-1h4z"
/>
</svg>
</LensIconChartBar>
</EuiIcon>
<EuiSpacer
size="s"
>
<div
className="euiSpacer euiSpacer--s"
/>
</EuiSpacer>
<p>
<FormattedMessage
defaultMessage="No results found"
id="xpack.lens.xyVisualization.noDataLabel"
values={Object {}}
>
<span>
No results found
</span>
</FormattedMessage>
</p>
</div>
</EuiTextColor>
</div>
</EuiTextAlign>
</div>
</EuiText>
</EmptyPlaceholder>
`;

exports[`Shared components Renders tool bar button component 1`] = `
<ToolbarButton
fontWeight="bold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,11 @@ import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
import { EmptyPlaceholder } from '../empty_placeholder';
import { LensIconChartBar } from '../../../../visualizations/assets/chart_bar';
import { ToolbarButton } from '../toolbar_button';

describe('Shared components', () => {
configure({ adapter: new Adapter() });

it('Renders empty placeholder component', async () => {
const wrapper = mount(<EmptyPlaceholder icon={LensIconChartBar} />);

wrapper.update();

await waitFor(() => {
expect(wrapper).toMatchSnapshot();
});
});

it('Renders tool bar button component', async () => {
const handleClick = jest.fn();
const WrappedComponent = () => <div>testing</div>;
Expand Down

This file was deleted.

56 changes: 0 additions & 56 deletions public/components/visualizations/assets/__tests__/assets.test.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions public/components/visualizations/assets/chart_bar.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions public/components/visualizations/assets/chart_bar_horizontal.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions public/components/visualizations/assets/chart_datatable.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions public/components/visualizations/assets/chart_line.tsx

This file was deleted.

Loading

0 comments on commit 63cf078

Please sign in to comment.