test: clarify extension auth assertions

This commit is contained in:
Peter Steinberger
2026-05-08 13:02:44 +01:00
parent d16fff10c0
commit 450b541d77
5 changed files with 15 additions and 10 deletions

View File

@@ -436,8 +436,8 @@ describe("resolveFeishuAccount", () => {
expect((caught as Error).message).toMatch(/channels\.feishu\.appSecret: unresolved SecretRef/i);
});
it("does not throw when account name is non-string", () => {
expect(() =>
it("ignores non-string account names", () => {
expect(
resolveFeishuAccount({
cfg: {
channels: {
@@ -454,6 +454,11 @@ describe("resolveFeishuAccount", () => {
} as never,
accountId: "main",
}),
).not.toThrow();
).toMatchObject({
accountId: "main",
appId: "cli_123",
appSecret: "secret_456",
name: undefined,
});
});
});