X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Ftests%2Funit%2FCSTable.spec.ts;h=0a364a6cf62fc3d184fd0dac8b35c6efbcb29b83;hb=9dc8b66f4d1fa4e298e260a33f08debb69b1d944;hp=cc31c0cfaf996de0904af3d628149e39c9d55a63;hpb=4147bb7ee6c183f244a10431b4dc53d71917f611;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 cc31c0cf..0a364a6c 100644 --- a/ui/web/tests/unit/CSTable.spec.ts +++ b/ui/web/tests/unit/CSTable.spec.ts @@ -1,21 +1,22 @@ -import { expect, test } from 'vitest'; -import { shallowMount } from '@vue/test-utils'; -import CSTable from '@/components/charging-stations/CSTable.vue'; -import type { ChargingStationData } from '@/types'; +import { expect, test } from 'vitest' +import { shallowMount } from '@vue/test-utils' +import CSTable from '@/components/charging-stations/CSTable.vue' +import type { ChargingStationData } from '@/types' test('renders CS table columns name', () => { - const chargingStations: ChargingStationData[] = []; + 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'); -}); + props: { chargingStations, idTag: '0' } + }) + expect(wrapper.text()).to.include('Name') + expect(wrapper.text()).to.include('Started') + expect(wrapper.text()).to.include('Supervision Url') + expect(wrapper.text()).to.include('WebSocket State') + expect(wrapper.text()).to.include('Registration Status') + expect(wrapper.text()).to.include('Template') + expect(wrapper.text()).to.include('Vendor') + expect(wrapper.text()).to.include('Model') + expect(wrapper.text()).to.include('Firmware') + expect(wrapper.text()).to.include('Actions') + expect(wrapper.text()).to.include('Connector(s)') +})