Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelolo24 committed Sep 15, 2022
1 parent be85678 commit c6e732f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 299 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,13 @@ import React from 'react';
import { render, screen } from '@testing-library/react';

import { TestProviders } from '../../../../common/mock/test_providers';
import { TimelineTabs } from '../../../../../common/types/timeline';
import { FlyoutBottomBar } from '.';

describe('FlyoutBottomBar', () => {
test('it renders the expected bottom bar', () => {
render(
<TestProviders>
<FlyoutBottomBar
timelineId="test"
showDataproviders={true}
activeTab={TimelineTabs.query}
/>
<FlyoutBottomBar timelineId="test" showDataproviders={true} />
</TestProviders>
);

Expand All @@ -30,11 +25,7 @@ describe('FlyoutBottomBar', () => {
test('it renders the flyout header panel', () => {
render(
<TestProviders>
<FlyoutBottomBar
timelineId="test"
showDataproviders={true}
activeTab={TimelineTabs.query}
/>
<FlyoutBottomBar timelineId="test" showDataproviders={true} />
</TestProviders>
);

Expand All @@ -44,11 +35,7 @@ describe('FlyoutBottomBar', () => {
test('it hides the flyout header panel', () => {
render(
<TestProviders>
<FlyoutBottomBar
timelineId="test"
showDataproviders={false}
activeTab={TimelineTabs.query}
/>
<FlyoutBottomBar timelineId="test" showDataproviders={false} />
</TestProviders>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const FlyoutComponent: React.FC<OwnProps> = ({ timelineId, onAppLeave }) => {
const dispatch = useDispatch();
const getTimelineShowStatus = useMemo(() => getTimelineShowStatusByIdSelector(), []);
const {
activeTab,
show,
status: timelineStatus,
updated,
Expand Down

0 comments on commit c6e732f

Please sign in to comment.