test: assert teams bot framework audience · openclaw/openclaw@1e6a674
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -282,7 +282,7 @@ describe("createBotFrameworkJwtValidator", () => {
|
282 | 282 | await expect(validator.validate("Bearer botfw-token")).resolves.toBe(true); |
283 | 283 | |
284 | 284 | const opts = jwtState.verifyCalls[0]?.options as Record<string, unknown>; |
285 | | -expect((opts.audience as string[]).includes("https://api.botframework.com")).toBe(true); |
| 285 | +expect(opts.audience).toContain("https://api.botframework.com"); |
286 | 286 | }); |
287 | 287 | |
288 | 288 | it("accepts global audience tokens when azp matches the configured app id", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。