init
This commit is contained in:
12
components/Welcome/Welcome.test.tsx
Normal file
12
components/Welcome/Welcome.test.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { Welcome } from './Welcome';
|
||||
|
||||
describe('Welcome component', () => {
|
||||
it('has correct Next.js theming section link', () => {
|
||||
render(<Welcome />);
|
||||
expect(screen.getByText('this guide')).toHaveAttribute(
|
||||
'href',
|
||||
'https://mantine.dev/guides/next/'
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user