Skip to content

Commit

Permalink
feat: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr committed Nov 7, 2024
1 parent 4dd4889 commit 13e93d5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/components/__tests__/GridList.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { describe, expect, it } from 'vitest';

import { render, screen } from '../../../test/utils';
import { GridList, GridListItem } from '../src';

describe('GridList', () => {
it('renders', async () => {
render(
<GridList aria-label="Items">
<GridListItem>Item one</GridListItem>
<GridListItem>Item two</GridListItem>
<GridListItem>Item three</GridListItem>
</GridList>,
);

expect(await screen.findByRole('grid')).toBeVisible();
});
});

0 comments on commit 13e93d5

Please sign in to comment.