Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Aug 12, 2024
1 parent 618a772 commit 99f8528
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { newSpecPage } from '@stencil/core/testing';
import { DBackgroundIllustration } from '../d-background-illustration';

describe('d-illustration', () => {
describe('d-background-illustration', () => {
it('renders', async () => {
const page = await newSpecPage({
components: [DBackgroundIllustration],
html: `<d-illustration></d-illustration>`,
html: `<d-background-illustration></d-background-illustration>`,
});
expect(page.root).toEqualHtml(`
<d-illustration class="block fill-highlight h-fit max-h-[50vh] opacity-50 relative shrink-0 w-full" style="background-image: url(undefined); background-size: cover; background-position: center;">
<div class="w-full">
<div class="max-w-96 mx-auto w-fit"></div>
</div>
</d-illustration>
<d-background-illustration class="block fill-highlight h-fit max-h-[50vh] opacity-50 relative shrink-0 w-full" style="background-image: url(undefined); background-size: cover; background-position: center;">
<div class="w-full">
<div class="max-w-96 mx-auto w-fit"></div>
</div>
</d-background-illustration>
`);
});
});
1 change: 0 additions & 1 deletion src/components/illustration/test/d-illustration.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ describe('d-illustration', () => {
expect(page.root).toEqualHtml(`
<d-illustration>
<mock:shadow-root>
<slot></slot>
</mock:shadow-root>
</d-illustration>
`);
Expand Down
4 changes: 2 additions & 2 deletions src/components/swipable-page/test/d-swipable-page.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ describe('d-swipable-page', () => {
<d-swipable-page>
<mock:shadow-root>
<div class="flex flex-col justify-between">
<d-illustration>
<d-background-illustration>
<slot></slot>
</d-illustration>
</d-background-illustration>
<div class="flex flex-col gap-4 px-4">
<d-heading size="s">
,
Expand Down

0 comments on commit 99f8528

Please sign in to comment.