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 committed 2022-05-20 14:10:58 +03:00
1 parent f9c0b712c4
commit 2ffbac1dbf
1 file changed
+5
+5
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", () => {