Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
Refs: #6768
  • Loading branch information
AlexanderSchmidtCE committed Sep 16, 2024
1 parent b3a7a2e commit 5f2e067
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/components/src/components/details/test/html.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { mixMembers } from 'stencil-awesome-test';

import type { DetailsProps } from '../../../schema';
import clsx from 'clsx';
import { KolIconTag, KolIndentedTextTag } from '../../../core/component-names';
import { KolIconTag } from '../../../core/component-names';

export const getDetailsHtml = (props: DetailsProps): string => {
props = mixMembers(
Expand Down Expand Up @@ -30,9 +30,9 @@ export const getDetailsHtml = (props: DetailsProps): string => {
</span>
</summary>
<div${props._open ? `` : ` aria-hidden="true"`} class="content">
<${KolIndentedTextTag}>
<div class="kol-indented-text">
<slot />
</${KolIndentedTextTag}>
</div>
</div>
</details>
</mock:shadow-root>
Expand Down
5 changes: 2 additions & 3 deletions packages/components/src/components/form/test/html.mock.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { mixMembers } from 'stencil-awesome-test';

import type { FormProps } from '../../../schema';
import { KolIndentedTextWcTag } from '../../../core/component-names';
export const getFormHtml = (props: FormProps): string => {
props = mixMembers({ ...props }, props);
return `<kol-form class="kol-form">
<mock:shadow-root>
<form autocomplete="off" method="post" novalidate="">
<p>
<${KolIndentedTextWcTag}>${
<div class="kol-indented-text">${
typeof props._requiredText === 'string' ? props._requiredText : 'Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.'
}</${KolIndentedTextWcTag}>
}</div>
</p>
<slot />
</form>
Expand Down

0 comments on commit 5f2e067

Please sign in to comment.