2021-10-19 15:50:09 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-10-19 15:50:09 +02:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 15:57:16 +02: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 15:50:09 +02:00
|
|
|
*/
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
import React from "react";
|
2024-02-21 12:23:07 +01:00
|
|
|
import { render } from "@testing-library/react";
|
2021-10-19 15:50:09 +02:00
|
|
|
|
|
|
|
import * as TestUtils from "../../../test-utils";
|
2022-12-12 12:24:14 +01:00
|
|
|
import FontScalingPanel from "../../../../src/components/views/settings/FontScalingPanel";
|
2021-10-19 15:50:09 +02:00
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
describe("FontScalingPanel", () => {
|
|
|
|
it("renders the font scaling UI", () => {
|
2021-10-19 15:50:09 +02:00
|
|
|
TestUtils.stubClient();
|
2022-12-12 12:24:14 +01:00
|
|
|
const { asFragment } = render(<FontScalingPanel />);
|
2022-11-18 10:16:11 +01:00
|
|
|
expect(asFragment()).toMatchSnapshot();
|
2021-10-19 15:50:09 +02:00
|
|
|
});
|
|
|
|
});
|