mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
18 lines
417 B
React
18 lines
417 B
React
|
|
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>
|
||
|
|
`);
|
||
|
|
});
|
||
|
|
});
|