fix: 선택 불가 국가 성향을 입력 목록에서 제외
Ref의 availableNationType 13개를 공용 목록으로 정의하고 건국, NPC/AI 건국, 전투 시뮬레이터 입력과 검증에 적용한다.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { AVAILABLE_NATION_TRAIT_KEYS } from '@sammo-ts/logic';
|
||||
|
||||
import { loadBattleSimTraitOptions } from '../src/battleSim/simulatorOptions.js';
|
||||
|
||||
describe('selectable trait options', () => {
|
||||
it('uses the Ref available nation-type list for founding and battle simulation inputs', async () => {
|
||||
const options = await loadBattleSimTraitOptions();
|
||||
|
||||
expect(options.nationTypes.map((entry) => entry.key)).toEqual(AVAILABLE_NATION_TRAIT_KEYS);
|
||||
expect(options.nationTypes).not.toEqual(
|
||||
expect.arrayContaining([expect.objectContaining({ key: 'che_중립' })])
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user