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
|
|
|
*/
|
|
|
|
|
|
|
|
import React from "react";
|
2024-10-14 19:11:58 +03:00
|
|
|
import { render } from "jest-matrix-react";
|
2021-10-19 16:50:09 +03:00
|
|
|
|
|
|
|
import * as TestUtils from "../../../test-utils";
|
2022-03-22 13:32:35 +03:00
|
|
|
import FontScalingPanel from "../../../../src/components/views/settings/FontScalingPanel";
|
2021-10-19 16:50:09 +03:00
|
|
|
|
|
|
|
describe("FontScalingPanel", () => {
|
|
|
|
it("renders the font scaling UI", () => {
|
|
|
|
TestUtils.stubClient();
|
2022-11-18 12:16:11 +03:00
|
|
|
const { asFragment } = render(<FontScalingPanel />);
|
|
|
|
expect(asFragment()).toMatchSnapshot();
|
2021-10-19 16:50:09 +03:00
|
|
|
});
|
|
|
|
});
|