Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriamarco committed Sep 8, 2023
1 parent 514f3a7 commit df6446c
Showing 1 changed file with 31 additions and 25 deletions.
56 changes: 31 additions & 25 deletions src/components/sbb-tab-title/sbb-tab-title.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ describe('sbb-tab-title', () => {
expect(root).toEqualHtml(`
<sbb-tab-title>
<mock:shadow-root>
<h1 class="sbb-tab-title">
<span class="sbb-tab-title__text">
<slot></slot>
</span>
</h1>
<div class="sbb-tab-title__wrapper">
<h1 class="sbb-tab-title">
<span class="sbb-tab-title__text">
<slot></slot>
</span>
</h1>
</div>
</mock:shadow-root>
</sbb-tab-title>
`);
Expand All @@ -28,18 +30,20 @@ describe('sbb-tab-title', () => {
});

expect(root).toEqualHtml(`
<sbb-tab-title level="2" icon-name="pie-small">
<mock:shadow-root>
<h2 class="sbb-tab-title">
<span class="sbb-tab-title__icon">
<slot name="icon"><sbb-icon name="pie-small"></sbb-icon></slot>
</span>
<span class="sbb-tab-title__text">
<slot></slot>
</span>
</h2>
</mock:shadow-root>
</sbb-tab-title>
<sbb-tab-title level="2" icon-name="pie-small">
<mock:shadow-root>
<div class="sbb-tab-title__wrapper">
<h2 class="sbb-tab-title">
<span class="sbb-tab-title__icon">
<slot name="icon"><sbb-icon name="pie-small"></sbb-icon></slot>
</span>
<span class="sbb-tab-title__text">
<slot></slot>
</span>
</h2>
</div>
</mock:shadow-root>
</sbb-tab-title>
`);
});

Expand All @@ -52,14 +56,16 @@ describe('sbb-tab-title', () => {
expect(root).toEqualHtml(`
<sbb-tab-title level="7" amount="78">
<mock:shadow-root>
<h1 class="sbb-tab-title">
<span class="sbb-tab-title__text">
<slot></slot>
</span>
<span class="sbb-tab-title__amount">
<slot name="amount">78</slot>
</span>
</h1>
<div class="sbb-tab-title__wrapper">
<h1 class="sbb-tab-title">
<span class="sbb-tab-title__text">
<slot></slot>
</span>
<span class="sbb-tab-title__amount">
<slot name="amount">78</slot>
</span>
</h1>
</div>
</mock:shadow-root>
</sbb-tab-title>
`);
Expand Down

0 comments on commit df6446c

Please sign in to comment.