From 0a4092a7f2c9364d1d12e6a9b32ce5454dbbd553 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 30 Aug 2022 13:04:53 +0200 Subject: [PATCH] Web UI: fix UT MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/ui/web/tests/unit/CSTable.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/web/tests/unit/CSTable.spec.ts b/src/ui/web/tests/unit/CSTable.spec.ts index b77fab86..b6084d9c 100644 --- a/src/ui/web/tests/unit/CSTable.spec.ts +++ b/src/ui/web/tests/unit/CSTable.spec.ts @@ -6,7 +6,11 @@ import type { ChargingStationData } from '@/types/ChargingStationType'; describe('CSTable.vue', () => { it('renders CS table columns name', () => { const chargingStations: Record = { - '0': {} as unknown as ChargingStationData, + '0': { + stationInfo: { + hashId: '0', + }, + } as unknown as ChargingStationData, }; const wrapper = shallowMount(CSTable, { props: { chargingStations, idTag: '0' }, -- 2.34.1