This commit is contained in:
R Midhun Suresh 2025-07-24 19:35:26 +05:30
parent 2c5d086425
commit e8e50816f1
No known key found for this signature in database

View File

@ -8,10 +8,16 @@ Please see LICENSE files in the repository root for full details.
import { MatrixEvent, MatrixEventEvent } from "matrix-js-sdk/src/matrix";
import { TextualEventViewModel } from "../../../src/viewmodels/event-tiles/TextualEventViewModel";
import { stubClient } from "../../test-utils";
jest.mock("../../../src/TextForEvent.tsx", () => ({
textForEvent: jest.fn().mockReturnValue("Test Message"),
}));
describe("TextualEventViewModel", () => {
it("should update when the sentinel updates", () => {
const fakeEvent = new MatrixEvent({});
stubClient();
const vm = new TextualEventViewModel({
showHiddenEvents: false,