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