Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
f3ef9e6602
commit
d0fea745bb
2 changed files with 5 additions and 3 deletions
|
@ -17,7 +17,9 @@ describe("<VerificationQRCode />", () => {
|
|||
});
|
||||
|
||||
it("renders a QR code", async () => {
|
||||
const { container, getAllByAltText } = render(<VerificationQRCode qrCodeBytes={Buffer.from("asd")} />);
|
||||
const { container, getAllByAltText } = render(
|
||||
<VerificationQRCode qrCodeBytes={new Uint8ClampedArray(Buffer.from("asd"))} />,
|
||||
);
|
||||
// wait for the spinner to go away
|
||||
await waitFor(() => getAllByAltText("QR Code").length === 1);
|
||||
expect(container).toMatchSnapshot();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue