빙의 군주의 외교권자 임명 권한을 복구

This commit is contained in:
2026-09-23 04:35:44 +00:00
parent 99a831b251
commit 7e9cde3592
5 changed files with 38 additions and 4 deletions
@@ -249,9 +249,9 @@ describe('nation personnel router', () => {
});
it('keeps ambassador and auditor candidate pools mutually exclusive like Ref', async () => {
const me = { ...baseGeneral, officerLevel: 12 };
const me = { ...baseGeneral, officerLevel: 12, npcState: 1 };
const rows = [
listRow({ id: 22, name: '군주', officerLevel: 12 }),
listRow({ id: 22, name: '군주', officerLevel: 12, npcState: 1 }),
listRow({ id: 30, name: '현 외교권자', meta: { belong: 5, permission: 'ambassador' } }),
listRow({ id: 31, name: '현 조언자', meta: { belong: 5, permission: 'auditor' } }),
listRow({ id: 32, name: '일반 후보' }),
@@ -283,6 +283,7 @@ describe('nation personnel router', () => {
});
const result = await appRouter.createCaller(context).nation.getPersonnelInfo();
expect(result.me.canChangePermissions).toBe(true);
expect(result.permissionCandidates.ambassadors.map((candidate) => candidate.id)).toEqual([30, 32]);
expect(result.permissionCandidates.auditors.map((candidate) => candidate.id)).toEqual([31, 32]);
});