Skip to content

Commit

Permalink
test(layout): group unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
GaoNeng-wWw committed Oct 5, 2024
1 parent 9b55994 commit d03dda2
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions packages/components/group/__test__/group.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
import * as Rect from 'react';
import { act, render } from '@testing-library/react'
import { group } from '..';
import { render } from '@testing-library/react'
import { Group } from '..';
describe('group', () => {
it.todo('should define');
it('should define', () => {
expect(
render(<Group></Group>)
).toBeDefined()
});
it('gap', () => {
const wrapper = render(
<Group gap={8}></Group>
)
const firstChild = wrapper.container.firstElementChild;
const gap = window.getComputedStyle(firstChild).getPropertyValue('--group-gap');
expect(gap).toBe('8px');
})
})

0 comments on commit d03dda2

Please sign in to comment.