refactor: add timing to effect
This commit is contained in:
@@ -143,6 +143,14 @@ describe('effectDesert.csv import', () => {
|
||||
expect(effect).toHaveProperty('id');
|
||||
expect(effect).toHaveProperty('name');
|
||||
expect(effect).toHaveProperty('description');
|
||||
expect(effect).toHaveProperty('timing');
|
||||
}
|
||||
});
|
||||
|
||||
it('should have valid timing values', () => {
|
||||
const validTimings = ['instant', 'temporary', 'lingering', 'permanent', 'posture', 'card', 'cardDraw', 'cardHand'];
|
||||
for (const effect of effectDesertData) {
|
||||
expect(validTimings).toContain(effect.timing);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user