From 0acbf5e6ab020dda7ddc6785347c05c144de3bd9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 7 Jun 2024 14:11:55 +0200 Subject: [PATCH] test: trivial refinements MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/utils/ConfigurationUtils.test.ts | 2 +- tests/utils/ErrorUtils.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/utils/ConfigurationUtils.test.ts b/tests/utils/ConfigurationUtils.test.ts index e8bcf8e2..f613ac8f 100644 --- a/tests/utils/ConfigurationUtils.test.ts +++ b/tests/utils/ConfigurationUtils.test.ts @@ -10,7 +10,7 @@ await describe('ConfigurationUtils test suite', async () => { const error = new Error() error.code = 'ENOENT' expect(() => { - handleFileException('path/to/module.js', FileType.Authorization, error, 'log prefix') + handleFileException('path/to/module.js', FileType.Authorization, error, 'log prefix |') }).toThrow(error) }) }) diff --git a/tests/utils/ErrorUtils.test.ts b/tests/utils/ErrorUtils.test.ts index 486a0316..907d05fa 100644 --- a/tests/utils/ErrorUtils.test.ts +++ b/tests/utils/ErrorUtils.test.ts @@ -10,10 +10,10 @@ await describe('ErrorUtils test suite', async () => { const error = new Error() error.code = 'ENOENT' expect(() => { - handleFileException('path/to/module.js', FileType.Authorization, error, 'log prefix', {}) + handleFileException('path/to/module.js', FileType.Authorization, error, 'log prefix |', {}) }).toThrow(error) expect(() => { - handleFileException('path/to/module.js', FileType.Authorization, error, 'log prefix', { + handleFileException('path/to/module.js', FileType.Authorization, error, 'log prefix |', { throwError: false }) }).not.toThrow() -- 2.34.1