From 2bc273fc1756e6999e7aa09238b55385c8c4df22 Mon Sep 17 00:00:00 2001 From: Elizabet Oliveira Date: Tue, 19 Jul 2022 13:34:24 +0100 Subject: [PATCH] Adding `children` to test --- .../__snapshots__/comment_event.test.tsx.snap | 12 ++++++++++-- src/components/comment_list/comment_event.test.tsx | 6 ++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/comment_list/__snapshots__/comment_event.test.tsx.snap b/src/components/comment_list/__snapshots__/comment_event.test.tsx.snap index 20ec075ce82..7ef1e9244d8 100644 --- a/src/components/comment_list/__snapshots__/comment_event.test.tsx.snap +++ b/src/components/comment_list/__snapshots__/comment_event.test.tsx.snap @@ -1,9 +1,17 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`EuiCommentEvent is rendered 1`] = ` +exports[`EuiCommentEvent is rendered with custom content 1`] = `
+> +
+

+ Some custom content +

+
+
`; exports[`EuiCommentEvent props event is rendered 1`] = ` diff --git a/src/components/comment_list/comment_event.test.tsx b/src/components/comment_list/comment_event.test.tsx index 9be370e1a2c..548bf77b9ee 100644 --- a/src/components/comment_list/comment_event.test.tsx +++ b/src/components/comment_list/comment_event.test.tsx @@ -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( - + +

Some custom content

+
); expect(component).toMatchSnapshot();