change jsx to tsx

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