Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit c72fc7e

Browse files
committed
🐛 Fixes an issue with running tests on windows
1 parent f7ef1fb commit c72fc7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main-window/load-url.test.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ test("loads from storybook", () => {
99
test("loads from electron", () => {
1010
const loadStub = jest.fn()
1111
loadURL({ loadURL: loadStub } as any, "a", false)
12-
expect(loadStub).toBeCalledWith("file:///a/out/index.html")
12+
if (process.platform === "win32") {
13+
expect(loadStub).toBeCalledWith("file:///a\\out\\index.html")
14+
} else {
15+
expect(loadStub).toBeCalledWith("file:///a/out/index.html")
16+
}
1317
})

0 commit comments

Comments
 (0)