X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fui%2Fweb%2Ftests%2Funit%2FCSTable.spec.ts;h=6b13495ae3422a9209f7d6a77923e4316d8838bb;hb=dba1b6eebfbfb001cf6d9c6447b78a8161e670b7;hp=b6084d9c2c4f010b3f97e24e85577772ff6bd35b;hpb=0a4092a7f2c9364d1d12e6a9b32ce5454dbbd553;p=e-mobility-charging-stations-simulator.git diff --git a/src/ui/web/tests/unit/CSTable.spec.ts b/src/ui/web/tests/unit/CSTable.spec.ts index b6084d9c..6b13495a 100644 --- a/src/ui/web/tests/unit/CSTable.spec.ts +++ b/src/ui/web/tests/unit/CSTable.spec.ts @@ -5,13 +5,7 @@ import type { ChargingStationData } from '@/types/ChargingStationType'; describe('CSTable.vue', () => { it('renders CS table columns name', () => { - const chargingStations: Record = { - '0': { - stationInfo: { - hashId: '0', - }, - } as unknown as ChargingStationData, - }; + const chargingStations: ChargingStationData[] = []; const wrapper = shallowMount(CSTable, { props: { chargingStations, idTag: '0' }, }); @@ -20,7 +14,7 @@ describe('CSTable.vue', () => { expect(wrapper.text()).to.include('Status'); expect(wrapper.text()).to.include('Transaction'); expect(wrapper.text()).to.include('Name'); - expect(wrapper.text()).to.include('Stopped'); + expect(wrapper.text()).to.include('Started'); expect(wrapper.text()).to.include('Registration Status'); expect(wrapper.text()).to.include('Vendor'); expect(wrapper.text()).to.include('Model');