X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Futils%2FConfigurationUtils.test.ts;h=b0689b888a6f3ecc452275cb00242af680ae59ff;hb=3edfdf53dc3c75bf26b4737bb014e6e98239ef38;hp=a7eae63997aa65e0aad0d569069d3e21b5c5d6d7;hpb=329f14c004f74241c7cae1400e81740f3333eeee;p=e-mobility-charging-stations-simulator.git diff --git a/tests/utils/ConfigurationUtils.test.ts b/tests/utils/ConfigurationUtils.test.ts index a7eae639..b0689b88 100644 --- a/tests/utils/ConfigurationUtils.test.ts +++ b/tests/utils/ConfigurationUtils.test.ts @@ -4,9 +4,13 @@ import { describe, it } from 'node:test' import { expect } from 'expect' import { FileType } from '../../src/types/index.js' -import { handleFileException } from '../../src/utils/ConfigurationUtils.js' +import { handleFileException, logPrefix } from '../../src/utils/ConfigurationUtils.js' await describe('ConfigurationUtils test suite', async () => { + await it('Verify logPrefix()', () => { + expect(logPrefix()).toContain(' Simulator configuration |') + }) + await it('Verify handleFileException()', t => { t.mock.method(console, 'error') const error = new Error()