From 1b29ac3c5c927c114a3830bc113419ff445205d2 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 11 Apr 2022 13:06:40 +0200 Subject: [PATCH] chore: fix pageRanges param --- spec-main/api-web-contents-spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spec-main/api-web-contents-spec.ts b/spec-main/api-web-contents-spec.ts index a2697c8da2979..8a3a54b36b974 100644 --- a/spec-main/api-web-contents-spec.ts +++ b/spec-main/api-web-contents-spec.ts @@ -1871,10 +1871,7 @@ describe('webContents module', () => { it('respects custom settings', async () => { const data = await w.webContents.printToPDF({ - pageRanges: { - from: 0, - to: 2 - }, + pageRanges: '0-2', landscape: true });