You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
Replace getQRCodeBytes
with generateQRCode
(#11241)
* Replace `getQRCodeBytes` with `generateQRCode` * another test update * remove obsolete snapshot
This commit is contained in:
committed by
GitHub
parent
9077592bec
commit
2cfbd73cd3
@@ -22,6 +22,11 @@ describe("<QRCode />", () => {
|
||||
cleanup();
|
||||
});
|
||||
|
||||
it("shows a spinner when data is null", async () => {
|
||||
const { container } = render(<QRCode data={null} />);
|
||||
expect(container.querySelector(".mx_Spinner")).toBeDefined();
|
||||
});
|
||||
|
||||
it("renders a QR with defaults", async () => {
|
||||
const { container, getAllByAltText } = render(<QRCode data="asd" />);
|
||||
await waitFor(() => getAllByAltText("QR Code").length === 1);
|
||||
|
Reference in New Issue
Block a user