Commit | Line | Data |
---|---|---|
258a5c7f JB |
1 | import { expect } from 'chai'; |
2 | import { shallowMount } from '@vue/test-utils'; | |
3 | import CSTable from '@/components/charging-stations/CSTable.vue'; | |
f27eb751 | 4 | import type { ChargingStationData } from '@/types/ChargingStationType'; |
258a5c7f JB |
5 | |
6 | describe('CSTable.vue', () => { | |
7 | it('renders CS table columns name', () => { | |
5e3cb728 | 8 | const chargingStations: ChargingStationData[] = []; |
258a5c7f JB |
9 | const wrapper = shallowMount(CSTable, { |
10 | props: { chargingStations, idTag: '0' }, | |
11 | }); | |
258a5c7f JB |
12 | expect(wrapper.text()).to.include('Action'); |
13 | expect(wrapper.text()).to.include('Connector'); | |
14 | expect(wrapper.text()).to.include('Status'); | |
15 | expect(wrapper.text()).to.include('Transaction'); | |
16 | expect(wrapper.text()).to.include('Name'); | |
452a82ca | 17 | expect(wrapper.text()).to.include('Started'); |
258a5c7f JB |
18 | expect(wrapper.text()).to.include('Registration Status'); |
19 | expect(wrapper.text()).to.include('Vendor'); | |
20 | expect(wrapper.text()).to.include('Model'); | |
21 | expect(wrapper.text()).to.include('Firmware Version'); | |
22 | }); | |
23 | }); |