Refine sonar-project.properties
[e-mobility-charging-stations-simulator.git] / src / ui / web / tests / unit / CSTable.spec.ts
index b77fab86b9e1ba819edd20d067f3c59edb79105c..6b13495ae3422a9209f7d6a77923e4316d8838bb 100644 (file)
@@ -5,9 +5,7 @@ import type { ChargingStationData } from '@/types/ChargingStationType';
 
 describe('CSTable.vue', () => {
   it('renders CS table columns name', () => {
-    const chargingStations: Record<string, ChargingStationData> = {
-      '0': {} as unknown as ChargingStationData,
-    };
+    const chargingStations: ChargingStationData[] = [];
     const wrapper = shallowMount(CSTable, {
       props: { chargingStations, idTag: '0' },
     });
@@ -16,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');