fix: 신규 장수의 빈 특기를 즉시 정규화한다
This commit is contained in:
@@ -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_견고');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user