1 import { describe
, it
} from
'node:test'
3 import { expect
} from
'expect'
6 ApplicationProtocolVersion
,
8 SupervisionUrlDistribution
9 } from
'../../src/types/ConfigurationData.js'
11 await describe('ConfigurationData test suite', async () => {
12 await it('Verify ConfigurationSection enumeration', () => {
13 expect(ConfigurationSection
.log
).toBe('log')
14 expect(ConfigurationSection
.performanceStorage
).toBe('performanceStorage')
15 expect(ConfigurationSection
.worker
).toBe('worker')
16 expect(ConfigurationSection
.uiServer
).toBe('uiServer')
19 await it('Verify SupervisionUrlDistribution enumeration', () => {
20 expect(SupervisionUrlDistribution
.ROUND_ROBIN
).toBe('round-robin')
21 expect(SupervisionUrlDistribution
.RANDOM
).toBe('random')
22 expect(SupervisionUrlDistribution
.CHARGING_STATION_AFFINITY
).toBe('charging-station-affinity')
25 await it('Verify ApplicationProtocolVersion enumeration', () => {
26 expect(ApplicationProtocolVersion
.VERSION_11
).toBe('1.1')
27 expect(ApplicationProtocolVersion
.VERSION_20
).toBe('2.0')