From 5bd92605fe0f7e996d43a054205a2301704be7c5 Mon Sep 17 00:00:00 2001 From: Vadim Kovalenko Date: Mon, 13 Nov 2023 21:11:16 +0200 Subject: [PATCH] Quick fix for the forceRender test --- test/e2e/forceRender.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/forceRender.test.ts b/test/e2e/forceRender.test.ts index 21b710f6..473a0111 100644 --- a/test/e2e/forceRender.test.ts +++ b/test/e2e/forceRender.test.ts @@ -44,13 +44,13 @@ describe('forceRender', () => { const forceRender = 'VisualEditor' expect(async () => { await mwoffliner.execute({ ...parameters, forceRender }) - }).rejects.toThrowError() + }).rejects.toThrow() }) test('Scrape article from bm.wikipedia.org should throw error when using wrong render', async () => { const forceRender = 'unknownRenderName' expect(async () => { await mwoffliner.execute({ ...parameters, forceRender }) - }).rejects.toThrowError() + }).rejects.toThrow() }) })