Skip to content

Commit d64b667

Browse files
committed
Descrew up tests
1 parent 8092eb4 commit d64b667

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/unit-tests/components/views/elements/AppTile-test.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Please see LICENSE files in the repository root for full details.
99
import React from "react";
1010
import { Room, type MatrixClient } from "matrix-js-sdk/src/matrix";
1111
import { type IWidget, MatrixWidgetType } from "matrix-widget-api";
12-
import { act, render, type RenderResult, waitForElementToBeRemoved, waitFor } from "jest-matrix-react";
12+
import { act, render, waitForElementToBeRemoved, waitFor } from "jest-matrix-react";
1313
import userEvent from "@testing-library/user-event";
1414
import {
1515
type ApprovalOpts,
@@ -363,8 +363,6 @@ describe("AppTile", () => {
363363
await waitForElementToBeRemoved(() => renderResult.queryByRole("progressbar"));
364364
const { asFragment } = renderResult;
365365

366-
console.log({isInContainer: WidgetLayoutStore.instance.isInContainer(r1, app1, Container.Center)});
367-
368366
expect(asFragment()).toMatchSnapshot(); // Take a snapshot of the pinned widget
369367
});
370368

@@ -379,7 +377,6 @@ describe("AppTile", () => {
379377
});
380378

381379
it("clicking 'minimise' should send the widget to the right", async () => {
382-
383380
const renderResult = render(
384381
<MatrixClientContext.Provider value={cli}>
385382
<AppTile key={app1.id} app={app1} room={r1} />
@@ -448,7 +445,7 @@ describe("AppTile", () => {
448445

449446
afterEach(() => {
450447
jest.spyOn(WidgetLayoutStore.instance, "isInContainer").mockRestore();
451-
})
448+
});
452449

453450
it("clicking 'un-maximise' should send the widget to the top", async () => {
454451
const renderResult = render(

0 commit comments

Comments
 (0)