chore: remove outdated comments.

This commit is contained in:
Kuzey Cimen 2026-01-29 01:25:17 +00:00
parent 56ee60d853
commit 58c92b63c6
2 changed files with 1 additions and 10 deletions

View File

@ -48,22 +48,14 @@ describe("discord multi-account logic", () => {
discord: {
token: "default_token",
accounts: {
bot_a: {}, // no token
bot_a: {},
},
},
},
} as unknown as MoltbotConfig;
const tokenA = resolveDiscordToken(config, { accountId: "bot_a" });
// Current implementation might strictly require per-account token if it's not the default account.
// Let's verify behavior.
// Actually, looking at token.ts:
// const accountToken = ...
// if (accountToken) return ...
// const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
// const configToken = allowEnv ? ... : undefined;
// So valid behavior: non-default accounts MUST have a specific token.
expect(tokenA.token).toBe("");
});

View File

@ -53,7 +53,6 @@ describe("resolveAgentRoute - Shared Channel", () => {
const route = resolveAgentRoute(input);
console.log("Channel Default:", route.sessionKey);
// Should NOT have :default
expect(route.sessionKey).toBe("agent:main:discord:channel:channel_123");
});
});