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:
parent
75eed35f3a
commit
a71b43f8e5
@ -37,7 +37,7 @@ describe("opening application window using tray", () => {
|
|||||||
|
|
||||||
mainDi.override(
|
mainDi.override(
|
||||||
lensResourcesDirInjectable,
|
lensResourcesDirInjectable,
|
||||||
() => "some-lens-resources-directory",
|
() => "/some-lens-resources-directory",
|
||||||
);
|
);
|
||||||
|
|
||||||
const loadFileMock = jest
|
const loadFileMock = jest
|
||||||
@ -119,7 +119,7 @@ describe("opening application window using tray", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("starts loading static HTML of splash window", () => {
|
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", () => {
|
describe("when loading of splash window HTML resolves", () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user