Skip to content

Commit

Permalink
Adding children to test
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabetdev committed Jul 19, 2022
1 parent 7e31abc commit 2bc273f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`EuiCommentEvent is rendered 1`] = `
exports[`EuiCommentEvent is rendered with custom content 1`] = `
<div
class="euiCommentEvent testClass1 testClass2 emotion-euiCommentEvent-custom"
/>
>
<div
class="emotion-euiCommentEvent__body-custom"
>
<p>
Some custom content
</p>
</div>
</div>
`;

exports[`EuiCommentEvent props event is rendered 1`] = `
Expand Down
6 changes: 4 additions & 2 deletions src/components/comment_list/comment_event.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ import { requiredProps } from '../../test/required_props';
import { EuiCommentEvent } from './comment_event';

describe('EuiCommentEvent', () => {
test('is rendered', () => {
test('is rendered with custom content', () => {
const component = render(
<EuiCommentEvent username="someuser" {...requiredProps} />
<EuiCommentEvent username="someuser" {...requiredProps}>
<p>Some custom content</p>
</EuiCommentEvent>
);

expect(component).toMatchSnapshot();
Expand Down

0 comments on commit 2bc273f

Please sign in to comment.