repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: silence two linter errors
[e-mobility-charging-stations-simulator.git]
/
tests
/
utils
/
ConfigurationUtils.test.ts
diff --git
a/tests/utils/ConfigurationUtils.test.ts
b/tests/utils/ConfigurationUtils.test.ts
index a7eae63997aa65e0aad0d569069d3e21b5c5d6d7..b0689b888a6f3ecc452275cb00242af680ae59ff 100644
(file)
--- 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 { 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 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()
await it('Verify handleFileException()', t => {
t.mock.method(console, 'error')
const error = new Error()