refactor(ui): cleanup eslint configuration
[e-mobility-charging-stations-simulator.git] / ui / web / tests / unit / CSTable.spec.ts
1 import { shallowMount } from '@vue/test-utils'
2 import { expect, test } from 'vitest'
3
4 import CSTable from '@/components/charging-stations/CSTable.vue'
5 import type { ChargingStationData } from '@/types'
6
7 test('renders CS table columns name', () => {
8 const chargingStations: ChargingStationData[] = []
9 const wrapper = shallowMount(CSTable, {
10 props: { chargingStations, idTag: '0' }
11 })
12 expect(wrapper.text()).to.include('Name')
13 expect(wrapper.text()).to.include('Started')
14 expect(wrapper.text()).to.include('Supervision Url')
15 expect(wrapper.text()).to.include('WebSocket State')
16 expect(wrapper.text()).to.include('Registration Status')
17 expect(wrapper.text()).to.include('Template')
18 expect(wrapper.text()).to.include('Vendor')
19 expect(wrapper.text()).to.include('Model')
20 expect(wrapper.text()).to.include('Firmware')
21 expect(wrapper.text()).to.include('Actions')
22 expect(wrapper.text()).to.include('Connector(s)')
23 })