diff --git a/src/QrCode.test.tsx b/src/QrCode.test.tsx index 6bdad313..6537076d 100644 --- a/src/QrCode.test.tsx +++ b/src/QrCode.test.tsx @@ -28,7 +28,7 @@ describe("QrCode", () => { const { container, findByRole } = render( , ); - await findByRole("img") as HTMLImageElement; + (await findByRole("img")) as HTMLImageElement; expect(container.firstChild).toMatchSnapshot(); }); });