Skip to content

Commit

Permalink
test: fix buttons unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Feb 15, 2024
1 parent 31b094a commit 3f88130
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/button/test/d-button.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ describe('d-button', () => {
html: `<d-button></d-button>`,
});
expect(page.root).toEqualHtml(`
<d-button>
<mock:shadow-root>
<button class="primary">
<slot></slot>
<d-button class="button button-small primary" color="primary">
<mock:shadow-root>
<button class="button-native primary" part="native" type="button">
<span class="button-inner">
<slot name="icon-only"></slot>
<slot name="start"></slot>
<slot></slot>
<slot name="end"></slot>
</span>
</button>
</mock:shadow-root>
</d-button>
`);
});
});

0 comments on commit 3f88130

Please sign in to comment.