1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Make test less prone to fail for wrong reason

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-05-20 09:20:12 +03:00
parent f9c0b712c4
commit 2ffbac1dbf
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -12,6 +12,7 @@ import { getApplicationBuilder } from "../../renderer/components/test-utils/get-
import { channelListenerInjectionToken } from "./channel-listener-injection-token";
import createLensWindowInjectable from "../../main/start-main-application/lens-window/application-window/create-lens-window.injectable";
import type { Channel } from "./channel-injection-token";
import closeAllWindowsInjectable from "../../main/start-main-application/lens-window/hide-all-windows/close-all-windows.injectable";
type TestChannel = Channel<string>;
@ -55,6 +56,10 @@ describe("channel", () => {
);
await applicationBuilder.render();
const closeAllWindows = mainDi.inject(closeAllWindowsInjectable);
closeAllWindows();
});
describe("given window is shown", () => {