Fix failing test due to missing fields
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Hamcha 2019-09-12 11:02:52 +02:00
parent 4e8d9a543b
commit e8050874ea
Signed by: hamcha
GPG key ID: 44AD3571EB09A39E

View file

@ -1,11 +1,17 @@
import DeckList from "@/components/DeckBuilder/DeckList.vue"; import DeckList from "@/components/DeckBuilder/DeckList.vue";
import { shallowMount } from "@vue/test-utils"; import { shallowMount } from "@vue/test-utils";
import { colorNames } from "@/mlpccg";
// Generate 10 test cards // Generate 10 test cards
const testCards = new Array(3).fill("test").map((t, i) => ({ const testCards = new Array(3).fill("test").map((t, i) => ({
ID: `test${i}`, ID: `test${i}`,
Name: `Test name ${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 })); const testSlots = testCards.map((c, i) => ({ data: c, limit: 3, howmany: i }));