Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Nov 7, 2023
1 parent 743e0cd commit dce77e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 10 additions & 6 deletions packages/components/src/components/accordion/test/html.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"'
)}`,
}
)}
<div class="wrapper">
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/components/heading/test/html.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ export const getHeadingWcHtml = (

return `
<kol-heading-wc${additionalAttrs}>
${typeof slots.default === 'string' ? `` : `<slot hidden=""></slot>`}
<${tag} class="headline">
${state._label}
${typeof slots.default === 'string' ? slots.default : `<slot />`}
${typeof slots.default === 'string' ? slots.default : ``}
</${tag}>
</kol-heading-wc>`;
};
Expand Down

0 comments on commit dce77e7

Please sign in to comment.