From 9bdd930bbeb32d29fc8d26e300a8eddba4912984 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..c9b283f9f7b18 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: '1-3', landscape: true });