Commit | Line | Data |
---|---|---|
47a41cff | 1 | import { expect } from 'expect' |
0749233f | 2 | import { describe, it } from 'node:test' |
47a41cff JB |
3 | |
4 | import { | |
5 | ApplicationProtocolVersion, | |
6 | ConfigurationSection, | |
d1f5bfd8 | 7 | SupervisionUrlDistribution, |
47a41cff JB |
8 | } from '../../src/types/ConfigurationData.js' |
9 | ||
10 | await describe('ConfigurationData test suite', async () => { | |
11 | await it('Verify ConfigurationSection enumeration', () => { | |
12 | expect(ConfigurationSection.log).toBe('log') | |
13 | expect(ConfigurationSection.performanceStorage).toBe('performanceStorage') | |
47a41cff | 14 | expect(ConfigurationSection.uiServer).toBe('uiServer') |
b1421bc3 | 15 | expect(ConfigurationSection.worker).toBe('worker') |
47a41cff JB |
16 | }) |
17 | ||
18 | await it('Verify SupervisionUrlDistribution enumeration', () => { | |
47a41cff | 19 | expect(SupervisionUrlDistribution.CHARGING_STATION_AFFINITY).toBe('charging-station-affinity') |
b1421bc3 JB |
20 | expect(SupervisionUrlDistribution.RANDOM).toBe('random') |
21 | expect(SupervisionUrlDistribution.ROUND_ROBIN).toBe('round-robin') | |
47a41cff JB |
22 | }) |
23 | ||
24 | await it('Verify ApplicationProtocolVersion enumeration', () => { | |
25 | expect(ApplicationProtocolVersion.VERSION_11).toBe('1.1') | |
26 | expect(ApplicationProtocolVersion.VERSION_20).toBe('2.0') | |
27 | }) | |
28 | }) |