mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 01:30:44 +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" }),
|
||||
);
|
||||
|
||||
@@ -151,6 +151,6 @@ describe("resolveDiscordThreadParentInfo", () => {
|
||||
|
||||
expect(fetchChannel).toHaveBeenCalledTimes(1);
|
||||
expect(fetchChannel).toHaveBeenCalledWith("thread-1");
|
||||
expect(result).toEqual({});
|
||||
expect(result).toStrictEqual({});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -87,6 +87,6 @@ describe("qa suite runtime agent session helpers", () => {
|
||||
readRawQaSessionStore({
|
||||
gateway: { tempRoot },
|
||||
} as never),
|
||||
).resolves.toEqual({});
|
||||
).resolves.toStrictEqual({});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -4875,7 +4875,7 @@ describe("matrix live qa scenarios", () => {
|
||||
plugins?: { allow?: string[]; entries?: { matrix?: unknown } };
|
||||
};
|
||||
expect(initialConfig.channels?.matrix?.enabled).toBe(true);
|
||||
expect(initialConfig.channels?.matrix?.accounts).toEqual({});
|
||||
expect(initialConfig.channels?.matrix?.accounts).toStrictEqual({});
|
||||
expect(initialConfig.plugins?.allow).toContain("matrix");
|
||||
expect(initialConfig.plugins?.entries?.matrix).toEqual({ enabled: true });
|
||||
}
|
||||
|
||||
@@ -362,8 +362,8 @@ describe("abort detection", () => {
|
||||
entry: store["session-1"],
|
||||
key: "session-1",
|
||||
});
|
||||
expect(resolveSessionEntryForKey(store, "session-2")).toEqual({});
|
||||
expect(resolveSessionEntryForKey(undefined, "session-1")).toEqual({});
|
||||
expect(resolveSessionEntryForKey(store, "session-2")).toStrictEqual({});
|
||||
expect(resolveSessionEntryForKey(undefined, "session-1")).toStrictEqual({});
|
||||
});
|
||||
|
||||
it("resolves Telegram forum topic session when lookup key has different casing than store", () => {
|
||||
|
||||
Reference in New Issue
Block a user