From a71b43f8e52c9f15753971db1cc5417022aa3404 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 24 Aug 2022 16:07:48 -0400 Subject: [PATCH] Fix opening application window tests by making override properly absolute Signed-off-by: Sebastian Malton --- .../opening-application-window-using-tray.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/quitting-and-restarting-the-app/opening-application-window-using-tray.test.ts b/src/features/quitting-and-restarting-the-app/opening-application-window-using-tray.test.ts index 86f0a6b83a..b1769e80af 100644 --- a/src/features/quitting-and-restarting-the-app/opening-application-window-using-tray.test.ts +++ b/src/features/quitting-and-restarting-the-app/opening-application-window-using-tray.test.ts @@ -37,7 +37,7 @@ describe("opening application window using tray", () => { mainDi.override( lensResourcesDirInjectable, - () => "some-lens-resources-directory", + () => "/some-lens-resources-directory", ); const loadFileMock = jest @@ -119,7 +119,7 @@ describe("opening application window using tray", () => { }); it("starts loading static HTML of splash window", () => { - expect(callForSplashWindowHtmlMock).toHaveBeenCalledWith("/some-absolute-root-directory/some-lens-resources-directory/static/splash.html"); + expect(callForSplashWindowHtmlMock).toHaveBeenCalledWith("/some-lens-resources-directory/static/splash.html"); }); describe("when loading of splash window HTML resolves", () => {