mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 15:31:46 +01:00
chore(ButtonGroup): use Primitive and improve tests
This commit is contained in:
@@ -9,9 +9,8 @@ describe('ButtonGroup', () => {
|
||||
|
||||
it.each([
|
||||
// Props
|
||||
['with as', { props: { as: 'div' } }],
|
||||
['with class', { props: { class: '' } }],
|
||||
['with ui', { props: { ui: {} } }],
|
||||
['with as', { props: { as: 'section' } }],
|
||||
['with class', { props: { class: 'absolute' } }],
|
||||
// Slots
|
||||
['with default slot', {
|
||||
slots: {
|
||||
|
||||
@@ -12,7 +12,7 @@ exports[`ButtonGroup > renders orientation vertical with default slot correctly
|
||||
</div>"
|
||||
`;
|
||||
|
||||
exports[`ButtonGroup > renders with as correctly 1`] = `"<div class="relative inline-flex -space-x-px" as="div"></div>"`;
|
||||
exports[`ButtonGroup > renders with as correctly 1`] = `"<section class="relative inline-flex -space-x-px"></section>"`;
|
||||
|
||||
exports[`ButtonGroup > renders with class correctly 1`] = `"<div class="relative inline-flex -space-x-px"></div>"`;
|
||||
|
||||
@@ -87,5 +87,3 @@ exports[`ButtonGroup > renders with size xs correctly 1`] = `
|
||||
</button>
|
||||
</div>"
|
||||
`;
|
||||
|
||||
exports[`ButtonGroup > renders with ui correctly 1`] = `"<div class="relative inline-flex -space-x-px"></div>"`;
|
||||
|
||||
Reference in New Issue
Block a user