mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
test(web): Link
This commit is contained in:
parent
058c0affaf
commit
9c7e3177a2
17
web/src/components/__tests__/Link.test.jsx
Normal file
17
web/src/components/__tests__/Link.test.jsx
Normal file
@ -0,0 +1,17 @@
|
||||
import { h } from 'preact';
|
||||
import Link from '../Link';
|
||||
import { render, screen } from '@testing-library/preact';
|
||||
|
||||
describe('Link', () => {
|
||||
test('renders a link', async () => {
|
||||
render(<Link href="/tacos">Hello</Link>);
|
||||
expect(screen.queryByText('Hello')).toMatchInlineSnapshot(`
|
||||
<a
|
||||
class="text-blue-500 hover:underline"
|
||||
href="/tacos"
|
||||
>
|
||||
Hello
|
||||
</a>
|
||||
`);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user