From e8050874eaa56c480776c4cbb158a1da6d059fc7 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 12 Sep 2019 11:02:52 +0200 Subject: [PATCH] Fix failing test due to missing fields --- src/tests/unit/components/DeckList.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tests/unit/components/DeckList.spec.ts b/src/tests/unit/components/DeckList.spec.ts index b58722d..75b8a2a 100644 --- a/src/tests/unit/components/DeckList.spec.ts +++ b/src/tests/unit/components/DeckList.spec.ts @@ -1,11 +1,17 @@ import DeckList from "@/components/DeckBuilder/DeckList.vue"; import { shallowMount } from "@vue/test-utils"; +import { colorNames } from "@/mlpccg"; // Generate 10 test cards const testCards = new Array(3).fill("test").map((t, i) => ({ ID: `test${i}`, Name: `Test name ${i}`, - Subname: `Subname ${i}` + Subname: `Subname ${i}`, + Type: "Friend", + Element: [colorNames[i]], + Power: i, + Cost: i, + Requirement: { Generosity: i } })); const testSlots = testCards.map((c, i) => ({ data: c, limit: 3, howmany: i }));