커맨드의 arg 타입에 zod 강제.
This commit is contained in:
@@ -290,7 +290,7 @@ describe('Nation Missing Actions', () => {
|
||||
setupDiplomacy(view, nation.id, destNation.id, 2);
|
||||
|
||||
const definition = new CounterStrategyAction();
|
||||
const args = { destNationId: destNation.id, commandType: 'che_허보' };
|
||||
const args = { destNationId: destNation.id, commandType: 'che_허보' } as const;
|
||||
const ctx: ConstraintContext = {
|
||||
actorId: general.id,
|
||||
nationId: nation.id,
|
||||
@@ -327,7 +327,7 @@ describe('Nation Missing Actions', () => {
|
||||
addLog: () => {},
|
||||
} as any,
|
||||
{ now: new Date(), schedule },
|
||||
{ destNationId: destNation.id, commandType: 'che_허보' }
|
||||
{ destNationId: destNation.id, commandType: 'che_허보' } as const
|
||||
);
|
||||
|
||||
expect(resolution.general.experience).toBeGreaterThan(100);
|
||||
|
||||
Reference in New Issue
Block a user