2021-10-19 16:50:09 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-10-19 16:50:09 +03:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 16:57:16 +03:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2021-10-19 16:50:09 +03:00
|
|
|
*/
|
|
|
|
|
2022-12-12 14:24:14 +03:00
|
|
|
import React from "react";
|
2024-02-21 14:23:07 +03:00
|
|
|
import { render } from "@testing-library/react";
|
2021-10-19 16:50:09 +03:00
|
|
|
|
|
|
|
import * as TestUtils from "../../../test-utils";
|
2022-12-12 14:24:14 +03:00
|
|
|
import FontScalingPanel from "../../../../src/components/views/settings/FontScalingPanel";
|
2021-10-19 16:50:09 +03:00
|
|
|
|
2022-12-12 14:24:14 +03:00
|
|
|
describe("FontScalingPanel", () => {
|
|
|
|
it("renders the font scaling UI", () => {
|
2021-10-19 16:50:09 +03:00
|
|
|
TestUtils.stubClient();
|
2022-12-12 14:24:14 +03:00
|
|
|
const { asFragment } = render(<FontScalingPanel />);
|
2022-11-18 12:16:11 +03:00
|
|
|
expect(asFragment()).toMatchSnapshot();
|
2021-10-19 16:50:09 +03:00
|
|
|
});
|
|
|
|
});
|