From dfa31244f733ff9e33dd8767b545b21acf99f7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Thu, 6 Apr 2023 14:38:21 +0200 Subject: [PATCH] fix: [test] - missing header in the order list is not an error --- test/header-generator/generation.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/header-generator/generation.test.ts b/test/header-generator/generation.test.ts index abc82de3..390fbf68 100644 --- a/test/header-generator/generation.test.ts +++ b/test/header-generator/generation.test.ts @@ -38,7 +38,8 @@ describe('Generation tests', () => { const log = `${userAgent}\n${browser}\n${inspect(order)}\n${inspect(headers)}`; if (newIndex === -1) { // If the header isn't in the order list, throw an error - throw new Error(`Missing entry in order array\n${log}`); + // throw new Error(`Missing entry in order array\n${log}`); + continue; } else if (newIndex < index) { // If the index of the header is earlier than the remembered index then throw an error. Example: // given order: