change test file to tsx

This commit is contained in:
Samira Mokaram
2020-10-15 16:57:10 +02:00
committed by Fredrik Adelöw
parent 6480278da9
commit 70a8dc923d
@@ -34,7 +34,9 @@ describe('<Link />', () => {
),
);
expect(() => getByText(testString)).toThrow();
await act(async () => fireEvent.click(getByText(linkText)));
await act(async () => {
fireEvent.click(getByText(linkText));
});
expect(getByText(testString)).toBeInTheDocument();
});
});