X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Ftests%2Funit%2FCSTable.spec.ts;h=ab4abe346570f32d8debe159f00d1000cc81fb35;hb=61e399f823eaef956b59dc2ffa7b6cdc9e834ce6;hp=6b13495ae3422a9209f7d6a77923e4316d8838bb;hpb=ebbfbf1c01e010d051956867484b74a94237f546;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/tests/unit/CSTable.spec.ts b/ui/web/tests/unit/CSTable.spec.ts index 6b13495a..ab4abe34 100644 --- a/ui/web/tests/unit/CSTable.spec.ts +++ b/ui/web/tests/unit/CSTable.spec.ts @@ -1,23 +1,22 @@ -import { expect } from 'chai'; +import { expect, test } from 'vitest'; import { shallowMount } from '@vue/test-utils'; import CSTable from '@/components/charging-stations/CSTable.vue'; -import type { ChargingStationData } from '@/types/ChargingStationType'; +import type { ChargingStationData } from '@/types'; -describe('CSTable.vue', () => { - it('renders CS table columns name', () => { - const chargingStations: ChargingStationData[] = []; - const wrapper = shallowMount(CSTable, { - props: { chargingStations, idTag: '0' }, - }); - expect(wrapper.text()).to.include('Action'); - expect(wrapper.text()).to.include('Connector'); - expect(wrapper.text()).to.include('Status'); - expect(wrapper.text()).to.include('Transaction'); - expect(wrapper.text()).to.include('Name'); - 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'); - expect(wrapper.text()).to.include('Firmware Version'); +test('renders CS table columns name', () => { + const chargingStations: ChargingStationData[] = []; + const wrapper = shallowMount(CSTable, { + props: { chargingStations, idTag: '0' }, }); + expect(wrapper.text()).to.include('Action'); + expect(wrapper.text()).to.include('Connector'); + expect(wrapper.text()).to.include('Status'); + expect(wrapper.text()).to.include('Transaction'); + expect(wrapper.text()).to.include('Name'); + expect(wrapper.text()).to.include('Started'); + expect(wrapper.text()).to.include('WebSocket State'); + expect(wrapper.text()).to.include('Registration Status'); + expect(wrapper.text()).to.include('Vendor'); + expect(wrapper.text()).to.include('Model'); + expect(wrapper.text()).to.include('Firmware Version'); });