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

Fix opening application window tests by making override properly absolute

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-08-24 16:07:48 -04:00
parent 75eed35f3a
commit a71b43f8e5

View File

@ -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", () => {