mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-27 13:38:33 +00:00
91a3cb03c1
mkdir apps/web/scripts
mv scripts/{cleanup.sh,ci_package.sh,copy-res.ts,deploy.py,package.sh} apps/web/scripts
And a couple of gitignore tweaks
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
23 lines
764 B
TypeScript
23 lines
764 B
TypeScript
/*
|
|
Copyright 2026 Element Creations Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import { render } from "jest-matrix-react";
|
|
import React from "react";
|
|
|
|
import { AnalyticsLearnMoreDialog } from "../../../../../src/components/views/dialogs/AnalyticsLearnMoreDialog.tsx";
|
|
|
|
describe("AnalyticsLearnMoreDialog", () => {
|
|
it("should match snapshot", async () => {
|
|
const { getByText, asFragment } = render(
|
|
<AnalyticsLearnMoreDialog onFinished={jest.fn()} analyticsOwner="Element" />,
|
|
);
|
|
|
|
expect(getByText("Help improve Element")).toBeInTheDocument();
|
|
expect(asFragment()).toMatchSnapshot();
|
|
});
|
|
});
|