From 9c7e3177a279bfe432311782228d9185f5da28fe Mon Sep 17 00:00:00 2001 From: Paul Armstrong Date: Fri, 12 Feb 2021 13:40:36 -0800 Subject: [PATCH] test(web): Link --- web/src/components/__tests__/Link.test.jsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 web/src/components/__tests__/Link.test.jsx diff --git a/web/src/components/__tests__/Link.test.jsx b/web/src/components/__tests__/Link.test.jsx new file mode 100644 index 000000000..5a4884694 --- /dev/null +++ b/web/src/components/__tests__/Link.test.jsx @@ -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(Hello); + expect(screen.queryByText('Hello')).toMatchInlineSnapshot(` + + Hello + + `); + }); +});