test: tighten plugin empty result assertions

This commit is contained in:
Shakker
2026-05-09 04:08:54 +01:00
parent dc36430df3
commit 3076da5e31
3 changed files with 5 additions and 5 deletions

View File

@@ -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",

View File

@@ -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 () => {

View File

@@ -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({});
});
});