import { expect } from 'chai';
import { shallowMount } from '@vue/test-utils';
import CSTable from '@/components/charging-stations/CSTable.vue';
-import type { ChargingStationData } from '@/type/ChargingStationType';
+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,
+ '0': {
+ stationInfo: {
+ hashId: '0',
+ },
+ } as unknown as ChargingStationData,
};
const wrapper = shallowMount(CSTable, {
props: { chargingStations, idTag: '0' },
});
- console.log(wrapper.text());
expect(wrapper.text()).to.include('Action');
expect(wrapper.text()).to.include('Connector');
expect(wrapper.text()).to.include('Status');