From c4bdfb55fe07533f622851135c53d146398a48a8 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Wed, 14 Sep 2022 23:27:19 +0200 Subject: [PATCH] fix spec --- spec-main/api-web-frame-main-spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec-main/api-web-frame-main-spec.ts b/spec-main/api-web-frame-main-spec.ts index 3a294c1ecd5d3..9ce8f071e2f17 100644 --- a/spec-main/api-web-frame-main-spec.ts +++ b/spec-main/api-web-frame-main-spec.ts @@ -130,7 +130,7 @@ describe('webFrameMain module', () => { it('should be file:// for file frames', async () => { const w = new BrowserWindow({ show: false }); - await w.loadFile(path.join(fixtures, 'pages', 'blank.html')); + await w.loadFile(path.join(fixtures, 'blank.html')); expect(w.webContents.mainFrame.origin).to.equal('file://'); }); @@ -144,7 +144,7 @@ describe('webFrameMain module', () => { it('should show parent origin when child page is about:blank', async () => { const w = new BrowserWindow({ show: false }); - await w.loadFile(path.join(fixtures, 'pages', 'blank.html')); + await w.loadFile(path.join(fixtures, 'blank.html')); const webContentsCreated: Promise<[unknown, WebContents]> = emittedOnce(app, 'web-contents-created') as any; expect(w.webContents.mainFrame.origin).to.equal('file://'); await w.webContents.executeJavaScript('window.open("", null, "show=false"), null');