
























@@ -75,7 +75,7 @@ describe("Codex plugin thread config", () => {
7575allowDestructiveActions: true,
7676mcpServerNames: ["google-calendar"],
7777});
78-expect(config.diagnostics).toEqual([]);
78+expect(config.diagnostics).toStrictEqual([]);
7979});
80808181it("maps destructive app access from global and per-plugin policy", async () => {
@@ -158,7 +158,7 @@ describe("Codex plugin thread config", () => {
158158},
159159},
160160});
161-expect(config.diagnostics).toEqual([]);
161+expect(config.diagnostics).toStrictEqual([]);
162162expect(config.policyContext.apps).toStrictEqual({});
163163});
164164@@ -208,7 +208,7 @@ describe("Codex plugin thread config", () => {
208208},
209209});
210210expect(config.policyContext.apps).toStrictEqual({});
211-expect(config.diagnostics).toEqual([]);
211+expect(config.diagnostics).toStrictEqual([]);
212212});
213213214214it("waits for the initial app inventory before exposing plugin apps", async () => {
@@ -260,7 +260,7 @@ describe("Codex plugin thread config", () => {
260260expect(config.policyContext.apps["google-calendar-app"]).toMatchObject({
261261pluginName: "google-calendar",
262262});
263-expect(config.diagnostics).toEqual([]);
263+expect(config.diagnostics).toStrictEqual([]);
264264expect(
265265request.mock.calls.reduce((count, [method]) => count + (method === "app/list" ? 1 : 0), 0),
266266).toBe(1);
@@ -391,7 +391,7 @@ describe("Codex plugin thread config", () => {
391391expect(config.policyContext.apps["google-calendar-app"]).toMatchObject({
392392pluginName: "google-calendar",
393393});
394-expect(config.diagnostics).toEqual([]);
394+expect(config.diagnostics).toStrictEqual([]);
395395expect(request.mock.calls.map(([method]) => method)).toContain("plugin/install");
396396expect(request.mock.calls.some(([method]) => method === "app/list")).toBe(true);
397397expect(appListParams.map((params) => params.forceRefetch)).toContain(true);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。