From c72fc7eaa6d23d159ca7a265651f3eb97be28243 Mon Sep 17 00:00:00 2001 From: Steve Kellock Date: Mon, 19 Mar 2018 07:06:28 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixes=20an=20issue=20with=20runn?= =?UTF-8?q?ing=20tests=20on=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main-window/load-url.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main-window/load-url.test.ts b/src/main-window/load-url.test.ts index 3521b0e..9e98478 100644 --- a/src/main-window/load-url.test.ts +++ b/src/main-window/load-url.test.ts @@ -9,5 +9,9 @@ test("loads from storybook", () => { test("loads from electron", () => { const loadStub = jest.fn() loadURL({ loadURL: loadStub } as any, "a", false) - expect(loadStub).toBeCalledWith("file:///a/out/index.html") + if (process.platform === "win32") { + expect(loadStub).toBeCalledWith("file:///a\\out\\index.html") + } else { + expect(loadStub).toBeCalledWith("file:///a/out/index.html") + } })