mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 14:10:47 +00:00
test: tighten plugin empty result assertions
This commit is contained in:
@@ -244,7 +244,7 @@ describe("loadEnabledBundleMcpConfig", () => {
|
||||
cfg: createEnabledBundleConfig(["malformed-mcp"]),
|
||||
});
|
||||
|
||||
expect(loaded.config.mcpServers).toEqual({});
|
||||
expect(loaded.config.mcpServers).toStrictEqual({});
|
||||
expect(loaded.diagnostics).toEqual([
|
||||
expect.objectContaining({
|
||||
pluginId: "malformed-mcp",
|
||||
@@ -275,7 +275,7 @@ describe("loadEnabledBundleMcpConfig", () => {
|
||||
cfg: createEnabledBundleConfig(["malformed-lsp"]),
|
||||
});
|
||||
|
||||
expect(loaded.config.lspServers).toEqual({});
|
||||
expect(loaded.config.lspServers).toStrictEqual({});
|
||||
expect(loaded.diagnostics).toEqual([
|
||||
expect.objectContaining({
|
||||
pluginId: "malformed-lsp",
|
||||
|
||||
@@ -1063,7 +1063,7 @@ describe("registerPluginCommand", () => {
|
||||
config: {} as never,
|
||||
});
|
||||
|
||||
expect(result).toEqual({});
|
||||
expect(result).toStrictEqual({});
|
||||
});
|
||||
|
||||
it("passes the effective default account to plugin command handlers when accountId is omitted", async () => {
|
||||
|
||||
@@ -353,7 +353,7 @@ describe("plugin index install records store", () => {
|
||||
loadInstalledPluginIndexInstallRecordsSync({
|
||||
stateDir,
|
||||
}),
|
||||
).toEqual({});
|
||||
).toStrictEqual({});
|
||||
});
|
||||
|
||||
it("updates and removes records without mutating caller state", () => {
|
||||
@@ -418,6 +418,6 @@ describe("plugin index install records store", () => {
|
||||
loadInstalledPluginIndexInstallRecords({
|
||||
stateDir,
|
||||
}),
|
||||
).resolves.toEqual({});
|
||||
).resolves.toStrictEqual({});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user