Skip to content

Commit

Permalink
update snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Nov 26, 2020
1 parent 9acf417 commit 825535b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 42 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 @@ -19,6 +19,7 @@ import * as redux from 'react-redux';
import moment from 'moment';
import { IHttpFetchError } from '../../../../../../../../src/core/public';
import { mockMoment } from '../../../../lib/helper/test_helpers';
import { EuiThemeProvider } from '../../../../../../observability/public';

jest.mock('@elastic/eui/lib/services/accessibility/html_id_generator', () => {
return {
Expand Down Expand Up @@ -176,14 +177,16 @@ describe('MonitorList component', () => {

it('renders the monitor list', () => {
const component = renderWithRouter(
<MonitorListComponent
monitorList={{
list: getMonitorList(moment().subtract(5, 'minute').toISOString()),
loading: false,
}}
pageSize={10}
setPageSize={jest.fn()}
/>
<EuiThemeProvider darkMode={false}>
<MonitorListComponent
monitorList={{
list: getMonitorList(moment().subtract(5, 'minute').toISOString()),
loading: false,
}}
pageSize={10}
setPageSize={jest.fn()}
/>
</EuiThemeProvider>
);

expect(component).toMatchSnapshot();
Expand Down

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 @@ -10,6 +10,7 @@ import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest';
import { Ping } from '../../../../../../common/runtime_types';
import { STATUS } from '../../../../../../common/constants';
import { getLocationStatus, MonitorListStatusColumn } from '../monitor_status_column';
import { EuiThemeProvider } from '../../../../../../../observability/public';

describe('MonitorListStatusColumn', () => {
beforeAll(() => {
Expand Down Expand Up @@ -253,11 +254,13 @@ describe('MonitorListStatusColumn', () => {

it('will render display location status', () => {
const component = renderWithIntl(
<MonitorListStatusColumn
status="up"
timestamp={new Date().toString()}
summaryPings={summaryPings}
/>
<EuiThemeProvider darkMode={false}>
<MonitorListStatusColumn
status="up"
timestamp={new Date().toString()}
summaryPings={summaryPings}
/>
</EuiThemeProvider>
);
expect(component).toMatchSnapshot();
});
Expand Down

0 comments on commit 825535b

Please sign in to comment.