mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 07:30:42 +00:00
test: tighten app session empty assertions
This commit is contained in:
@@ -131,7 +131,7 @@ describe("Codex app-server config", () => {
|
||||
approvalPolicy: "always",
|
||||
},
|
||||
}),
|
||||
).toEqual({});
|
||||
).toStrictEqual({});
|
||||
});
|
||||
|
||||
it("requires a websocket url when websocket transport is configured", () => {
|
||||
|
||||
@@ -159,7 +159,7 @@ describe("Codex plugin thread config", () => {
|
||||
},
|
||||
});
|
||||
expect(config.diagnostics).toEqual([]);
|
||||
expect(config.policyContext.apps).toEqual({});
|
||||
expect(config.policyContext.apps).toStrictEqual({});
|
||||
});
|
||||
|
||||
it("does not let per-plugin enablement override disabled native plugin support", async () => {
|
||||
@@ -207,7 +207,7 @@ describe("Codex plugin thread config", () => {
|
||||
},
|
||||
},
|
||||
});
|
||||
expect(config.policyContext.apps).toEqual({});
|
||||
expect(config.policyContext.apps).toStrictEqual({});
|
||||
expect(config.diagnostics).toEqual([]);
|
||||
});
|
||||
|
||||
@@ -312,7 +312,7 @@ describe("Codex plugin thread config", () => {
|
||||
},
|
||||
},
|
||||
});
|
||||
expect(config.policyContext.apps).toEqual({});
|
||||
expect(config.policyContext.apps).toStrictEqual({});
|
||||
expect(config.diagnostics).toContainEqual(
|
||||
expect.objectContaining({
|
||||
code: "app_not_ready",
|
||||
@@ -451,7 +451,7 @@ describe("Codex plugin thread config", () => {
|
||||
},
|
||||
},
|
||||
});
|
||||
expect(config.policyContext.apps).toEqual({});
|
||||
expect(config.policyContext.apps).toStrictEqual({});
|
||||
expect(config.diagnostics).toContainEqual(
|
||||
expect.objectContaining({
|
||||
code: "plugin_activation_failed",
|
||||
@@ -499,7 +499,7 @@ describe("Codex plugin thread config", () => {
|
||||
},
|
||||
},
|
||||
});
|
||||
expect(config.policyContext.apps).toEqual({});
|
||||
expect(config.policyContext.apps).toStrictEqual({});
|
||||
expect(config.diagnostics).toContainEqual(
|
||||
expect.objectContaining({ code: "app_inventory_missing" }),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user