mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 11:34:46 +00:00
test: clarify extension auth assertions
This commit is contained in:
@@ -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,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user