From: Jérôme Benoit Date: Fri, 7 Jun 2024 12:11:55 +0000 (+0200) Subject: test: trivial refinements X-Git-Tag: v1.3.5~19 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0acbf5e6ab020dda7ddc6785347c05c144de3bd9;p=e-mobility-charging-stations-simulator.git test: trivial refinements Signed-off-by: Jérôme Benoit --- 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()