mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-10-21 13:14:10 +00:00
Replace @testing-library/jest-dom with built-in vitest browser assertions
This commit is contained in:
@@ -13,8 +13,8 @@ describe('<ScrollToTop />', () => {
|
||||
|
||||
it('passes a11y checks', () => checkAccessibility(setUp()));
|
||||
|
||||
it.each([['Foobar'], ['Barfoo'], ['Something']])('just renders children', (children) => {
|
||||
it.each([['Foobar'], ['Barfoo'], ['Something']])('just renders children', async (children) => {
|
||||
setUp(children);
|
||||
expect(screen.getByText(children)).toBeInTheDocument();
|
||||
await expect.element(screen.getByText(children)).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user