mirror of
https://github.com/vector-im/element-web.git
synced 2026-06-11 11:09:31 +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>
24 lines
813 B
TypeScript
24 lines
813 B
TypeScript
/*
|
|
* Copyright 2024 New Vector 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 React from "react";
|
|
import { render } from "jest-matrix-react";
|
|
import KeyIcon from "@vector-im/compound-design-tokens/assets/web/icons/key-solid";
|
|
|
|
import { EncryptionCard } from "../../../../../../src/components/views/settings/encryption/EncryptionCard";
|
|
|
|
describe("<EncryptionCard />", () => {
|
|
it("should render", () => {
|
|
const { asFragment } = render(
|
|
<EncryptionCard Icon={KeyIcon} title="My title" description="My description">
|
|
Encryption card children
|
|
</EncryptionCard>,
|
|
);
|
|
expect(asFragment()).toMatchSnapshot();
|
|
});
|
|
});
|