-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cd39dc
commit 4b35b4e
Showing
5 changed files
with
48 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
...ime/public/components/functional/__tests__/__snapshots__/monitor_status.bar.test.tsx.snap
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...k/plugins/uptime/public/components/functional/charts/__tests__/chart_empty_state.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* 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 { ChartEmptyState } from '../chart_empty_state'; | ||
import { shallowWithIntl } from 'test_utils/enzyme_helpers'; | ||
import React from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
|
||
describe('ChartEmptyState', () => { | ||
it('renders string values', () => { | ||
expect( | ||
shallowWithIntl(<ChartEmptyState body="This is the body" title="This is the title" />) | ||
).toMatchSnapshot(); | ||
}); | ||
|
||
it('renders JSX values', () => { | ||
expect( | ||
shallowWithIntl( | ||
<ChartEmptyState | ||
body={ | ||
<FormattedMessage | ||
id="test.body" | ||
defaultMessage="This is the default with a {val} included" | ||
values={{ val: <strong>down</strong> }} | ||
/> | ||
} | ||
title={<FormattedMessage id="test.title" defaultMessage="The title" />} | ||
/> | ||
) | ||
).toMatchSnapshot(); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.