repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Combined PR (#197)
[e-mobility-charging-stations-simulator.git]
/
src
/
ui
/
web
/
tests
/
unit
/
CSTable.spec.ts
diff --git
a/src/ui/web/tests/unit/CSTable.spec.ts
b/src/ui/web/tests/unit/CSTable.spec.ts
index 96101802af16c3fa119f7ee0c28bc2f3cd3758b1..6b13495ae3422a9209f7d6a77923e4316d8838bb 100644
(file)
--- a/
src/ui/web/tests/unit/CSTable.spec.ts
+++ b/
src/ui/web/tests/unit/CSTable.spec.ts
@@
-1,13
+1,11
@@
import { expect } from 'chai';
import { shallowMount } from '@vue/test-utils';
import CSTable from '@/components/charging-stations/CSTable.vue';
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 '@/type
s
/ChargingStationType';
describe('CSTable.vue', () => {
it('renders CS table columns name', () => {
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' },
});
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('Status');
expect(wrapper.text()).to.include('Transaction');
expect(wrapper.text()).to.include('Name');
- expect(wrapper.text()).to.include('St
opp
ed');
+ expect(wrapper.text()).to.include('St
art
ed');
expect(wrapper.text()).to.include('Registration Status');
expect(wrapper.text()).to.include('Vendor');
expect(wrapper.text()).to.include('Model');
expect(wrapper.text()).to.include('Registration Status');
expect(wrapper.text()).to.include('Vendor');
expect(wrapper.text()).to.include('Model');