* Remove vm related code from element-web/src * Add and export view model code from package * Update imports * Rewrite vm tests using vitest * Add github action to run vm tests * Fix lint errors * Mvoe tests over to jest * Try fixing code coverage * Second attempt at fixing code coverage
26 lines
805 B
TypeScript
26 lines
805 B
TypeScript
/*
|
|
Copyright 2025 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import React from "react";
|
|
import { type Meta, type StoryFn } from "@storybook/react-vite";
|
|
|
|
import { TextualEventView as TextualEventComponent } from "./TextualEventView";
|
|
import { MockViewModel } from "../../viewmodel/MockViewModel";
|
|
|
|
export default {
|
|
title: "Event/TextualEvent",
|
|
component: TextualEventComponent,
|
|
tags: ["autodocs"],
|
|
args: {
|
|
vm: new MockViewModel({ content: "Dummy textual event text" }),
|
|
},
|
|
} as Meta<typeof TextualEventComponent>;
|
|
|
|
const Template: StoryFn<typeof TextualEventComponent> = (args) => <TextualEventComponent {...args} />;
|
|
|
|
export const Default = Template.bind({});
|