X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Futils%2FErrorUtils.test.ts;h=7bbf4db2d700dc0b7effac670eb4e14668e598b1;hb=64c14c99f9902d4e96f2a2cd404e536e0584a629;hp=edf088cf8cf8785605c570c5728616063601ef5d;hpb=0f1dc770503395f8035b75fb0ae4ff394d1b5dfe;p=e-mobility-charging-stations-simulator.git diff --git a/tests/utils/ErrorUtils.test.ts b/tests/utils/ErrorUtils.test.ts index edf088cf..7bbf4db2 100644 --- a/tests/utils/ErrorUtils.test.ts +++ b/tests/utils/ErrorUtils.test.ts @@ -14,8 +14,7 @@ import { import { handleFileException, handleIncomingRequestError, - handleSendMessageError, - setDefaultErrorParams + handleSendMessageError } from '../../src/utils/ErrorUtils.js' import { logger } from '../../src/utils/Logger.js' @@ -106,24 +105,4 @@ await describe('ErrorUtils test suite', async () => { expect(chargingStation.logPrefix.mock.calls.length).toBe(3) expect(logger.error.mock.calls.length).toBe(3) }) - - await it('Verify setDefaultErrorParams()', () => { - expect(setDefaultErrorParams({})).toStrictEqual({ throwError: true, consoleOut: false }) - expect(setDefaultErrorParams({ throwError: false })).toStrictEqual({ - throwError: false, - consoleOut: false - }) - expect(setDefaultErrorParams({ throwError: false, consoleOut: true })).toStrictEqual({ - throwError: false, - consoleOut: true - }) - expect(setDefaultErrorParams({ throwError: true, consoleOut: true })).toStrictEqual({ - throwError: true, - consoleOut: true - }) - expect(setDefaultErrorParams({}, { throwError: false, consoleOut: false })).toStrictEqual({ - throwError: false, - consoleOut: false - }) - }) })