From dce77e796a6f7885dfce6dbeb28944f1b16ef81a Mon Sep 17 00:00:00 2001 From: Martin Oppitz Date: Tue, 7 Nov 2023 08:22:50 +0100 Subject: [PATCH] fix: tests --- .../src/components/accordion/test/html.mock.ts | 16 ++++++++++------ .../src/components/heading/test/html.mock.ts | 3 ++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/packages/components/src/components/accordion/test/html.mock.ts b/packages/components/src/components/accordion/test/html.mock.ts index e61ad256d7..a6da79c8e1 100644 --- a/packages/components/src/components/accordion/test/html.mock.ts +++ b/packages/components/src/components/accordion/test/html.mock.ts @@ -27,12 +27,16 @@ export const getAccordionHtml = ( _level: props._level, }, { - default: `${getButtonWcHtml({ - _ariaControls: 'nonce', - _ariaExpanded: props._open === true, - _icons: `codicon codicon-${props._open ? 'chrome-minimize' : 'add'}`, - _label: props._label, - })}`, + default: `${getButtonWcHtml( + { + _ariaControls: 'nonce', + _ariaExpanded: props._open === true, + _icons: `codicon codicon-${props._open ? 'chrome-minimize' : 'add'}`, + _label: props._label, + }, + undefined, + ' slot="expert"' + )}`, } )}
diff --git a/packages/components/src/components/heading/test/html.mock.ts b/packages/components/src/components/heading/test/html.mock.ts index cbf75f5438..53fcc4243f 100644 --- a/packages/components/src/components/heading/test/html.mock.ts +++ b/packages/components/src/components/heading/test/html.mock.ts @@ -20,9 +20,10 @@ export const getHeadingWcHtml = ( return ` + ${typeof slots.default === 'string' ? `` : ``} <${tag} class="headline"> ${state._label} - ${typeof slots.default === 'string' ? slots.default : ``} + ${typeof slots.default === 'string' ? slots.default : ``} `; };