fix: 선택 불가 국가 성향을 입력 목록에서 제외
Ref의 availableNationType 13개를 공용 목록으로 정의하고 건국, NPC/AI 건국, 전투 시뮬레이터 입력과 검증에 적용한다.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import {
|
||||
AVAILABLE_NATION_TRAIT_KEYS,
|
||||
isAvailableNationTraitKey,
|
||||
NATION_TRAIT_KEYS,
|
||||
} from '../src/actionModules/traits/nation/index.js';
|
||||
|
||||
describe('Ref-selectable nation traits', () => {
|
||||
it('keeps the neutral storage trait valid internally but unavailable to user selection', () => {
|
||||
expect(NATION_TRAIT_KEYS).toContain('che_중립');
|
||||
expect(AVAILABLE_NATION_TRAIT_KEYS).toEqual([
|
||||
'che_도적',
|
||||
'che_명가',
|
||||
'che_음양가',
|
||||
'che_종횡가',
|
||||
'che_불가',
|
||||
'che_오두미도',
|
||||
'che_태평도',
|
||||
'che_도가',
|
||||
'che_묵가',
|
||||
'che_덕가',
|
||||
'che_병가',
|
||||
'che_유가',
|
||||
'che_법가',
|
||||
]);
|
||||
expect(isAvailableNationTraitKey('che_중립')).toBe(false);
|
||||
expect(isAvailableNationTraitKey('che_도적')).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user