fix: 자동 외교 설정을 제거하고 관련된 모든 부분을 업데이트

This commit is contained in:
2026-08-28 13:58:18 +00:00
parent ddbfa0afa9
commit eb755757ec
11 changed files with 39 additions and 31 deletions
@@ -584,7 +584,6 @@ describe('in-game my information ownership', () => {
defence_train: 80,
use_treatment: 21,
use_auto_nation_turn: 1,
use_auto_nation_diplomacy: 0,
use_auto_nation_war: 0,
use_auto_nation_promotion: 0,
use_auto_nation_finance: 0,
@@ -612,6 +611,18 @@ describe('in-game my information ownership', () => {
expect(requestCommand).not.toHaveBeenCalled();
});
it('rejects the removed automatic diplomacy setting before dispatching it to ENGINE', async () => {
const requestCommand = vi.fn(async () => ({ type: 'setMySetting', ok: true, generalId: 7 }));
const fixture = createContext({ requestCommand });
await expect(
appRouter.createCaller(fixture.context).general.setMySetting({
use_auto_nation_diplomacy: 1,
} as never)
).rejects.toMatchObject({ code: 'BAD_REQUEST' });
expect(requestCommand).not.toHaveBeenCalled();
});
it('sends settings directly to ENGINE without creating an API input event', async () => {
const transaction = vi.fn(async () => {
throw new Error('API transaction must not run');