fix: 신규 장수의 빈 특기를 즉시 정규화한다

This commit is contained in:
2026-08-24 01:57:15 +00:00
parent 32bab36320
commit e3b252143b
3 changed files with 29 additions and 6 deletions
@@ -4,6 +4,7 @@ import {
buildJoinCreateGeneralSeed,
cutJoinTurnTime,
JOIN_WELCOME_MESSAGE,
normalizeJoinSpecialityCode,
resolveJoinTurnTime,
} from '../src/turn/joinCreateGeneralService.js';
@@ -53,4 +54,11 @@ describe('generic join legacy time contracts', () => {
expect(JOIN_WELCOME_MESSAGE).toBe('삼국지 모의전투 HiDCHe의 세계에 오신 것을 환영합니다 ^o^');
expect(JOIN_WELCOME_MESSAGE).not.toContain('PHP');
});
it('normalizes the Ref empty-speciality sentinel at the join boundary', () => {
expect(normalizeJoinSpecialityCode(undefined)).toBeNull();
expect(normalizeJoinSpecialityCode('')).toBeNull();
expect(normalizeJoinSpecialityCode('None')).toBeNull();
expect(normalizeJoinSpecialityCode('che_견고')).toBe('che_견고');
});
});