






















@@ -1169,7 +1169,7 @@ describe("resolveGatewayStartupPluginIds", () => {
11691169DEMO_CHANNEL_ANYTHING: "1",
11701170} as NodeJS.ProcessEnv,
11711171}),
1172-).toEqual([]);
1172+).toStrictEqual([]);
11731173});
1174117411751175it("keeps explicitly trusted deferred channel owners eligible at startup", () => {
@@ -1264,7 +1264,7 @@ describe("resolveGatewayStartupPluginIds", () => {
12641264OPENCLAW_STATE_DIR: "/tmp/openclaw-with-persisted-demo-channel",
12651265} as NodeJS.ProcessEnv,
12661266}),
1267-).toEqual([]);
1267+).toStrictEqual([]);
12681268});
1269126912701270it("loads channel, deferred, and startup plugin ids from one manifest registry", () => {
@@ -1287,7 +1287,7 @@ describe("resolveGatewayStartupPluginIds", () => {
1287128712881288expect(plan.channelPluginIds).toContain("demo-channel");
12891289expect(plan.pluginIds).toContain("demo-channel");
1290-expect(plan.configuredDeferredChannelPluginIds).toEqual([]);
1290+expect(plan.configuredDeferredChannelPluginIds).toStrictEqual([]);
12911291expect(loadPluginRegistrySnapshot).toHaveBeenCalledOnce();
12921292expect(loadPluginManifestRegistryForInstalledIndex).toHaveBeenCalledOnce();
12931293});
@@ -1311,7 +1311,7 @@ describe("resolveGatewayStartupPluginIds", () => {
13111311workspaceDir: "/tmp",
13121312env: {},
13131313}),
1314-).toEqual([]);
1314+).toStrictEqual([]);
13151315});
1316131613171317it("includes the explicitly selected memory slot plugin in startup scope", () => {
@@ -1604,7 +1604,7 @@ describe("resolveConfiguredChannelPluginIds", () => {
16041604workspaceDir: "/tmp",
16051605env: process.env,
16061606}),
1607-).toEqual([]);
1607+).toStrictEqual([]);
16081608});
1609160916101610it("keeps explicitly configured bundled channel owners under restrictive allowlists", () => {
@@ -1640,7 +1640,7 @@ describe("resolveConfiguredChannelPluginIds", () => {
16401640workspaceDir: "/tmp",
16411641env: process.env,
16421642}),
1643-).toEqual([]);
1643+).toStrictEqual([]);
16441644});
1645164516461646it("blocks bundled activation owners when plugins are globally disabled", () => {
@@ -1657,7 +1657,7 @@ describe("resolveConfiguredChannelPluginIds", () => {
16571657workspaceDir: "/tmp",
16581658env: process.env,
16591659}),
1660-).toEqual([]);
1660+).toStrictEqual([]);
16611661});
1662166216631663it("filters untrusted workspace activation owners from configured-channel runtime planning", () => {
@@ -1669,7 +1669,7 @@ describe("resolveConfiguredChannelPluginIds", () => {
16691669workspaceDir: "/tmp",
16701670env: process.env,
16711671}),
1672-).toEqual([]);
1672+).toStrictEqual([]);
16731673});
1674167416751675it("filters untrusted global activation owners from configured-channel runtime planning", () => {
@@ -1681,7 +1681,7 @@ describe("resolveConfiguredChannelPluginIds", () => {
16811681workspaceDir: "/tmp",
16821682env: process.env,
16831683}),
1684-).toEqual([]);
1684+).toStrictEqual([]);
16851685});
1686168616871687it("keeps explicitly enabled global activation owners eligible for configured-channel runtime planning", () => {
@@ -1710,7 +1710,7 @@ describe("resolveConfiguredChannelPluginIds", () => {
17101710workspaceDir: "/tmp",
17111711env: process.env,
17121712}),
1713-).toEqual([]);
1713+).toStrictEqual([]);
17141714});
1715171517161716it("includes trusted external channel owners configured only by manifest env vars", () => {
@@ -1747,7 +1747,7 @@ describe("resolveConfiguredChannelPluginIds", () => {
17471747workspaceDir: "/tmp",
17481748env: process.env,
17491749}),
1750-).toEqual([]);
1750+).toStrictEqual([]);
17511751});
17521752});
17531753@@ -1779,7 +1779,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
17791779} as NodeJS.ProcessEnv,
17801780includePersistedAuthState: false,
17811781}),
1782-).toEqual([]);
1782+).toStrictEqual([]);
1783178317841784expect(
17851785hasConfiguredChannelsForReadOnlyScope({
@@ -1903,23 +1903,23 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
19031903},
19041904} as OpenClawConfig;
190519051906-expect(listExplicitConfiguredChannelIdsForConfig(config)).toEqual([]);
1906+expect(listExplicitConfiguredChannelIdsForConfig(config)).toStrictEqual([]);
19071907expect(
19081908resolveConfiguredChannelPresencePolicy({
19091909 config,
19101910workspaceDir: "/tmp",
19111911env: {},
19121912includePersistedAuthState: false,
19131913}),
1914-).toEqual([]);
1914+).toStrictEqual([]);
19151915expect(
19161916listConfiguredChannelIdsForReadOnlyScope({
19171917 config,
19181918workspaceDir: "/tmp",
19191919env: {},
19201920includePersistedAuthState: false,
19211921}),
1922-).toEqual([]);
1922+).toStrictEqual([]);
19231923});
1924192419251925it("treats disabled channel config as a hard read-only env suppressor", () => {
@@ -1953,7 +1953,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
19531953} as NodeJS.ProcessEnv,
19541954includePersistedAuthState: false,
19551955}),
1956-).toEqual([]);
1956+).toStrictEqual([]);
19571957expect(
19581958listConfiguredChannelIdsForReadOnlyScope({
19591959 config,
@@ -1963,7 +1963,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
19631963} as NodeJS.ProcessEnv,
19641964includePersistedAuthState: false,
19651965}),
1966-).toEqual([]);
1966+).toStrictEqual([]);
19671967});
1968196819691969it("treats disabled channel config as a hard persisted-auth suppressor", () => {
@@ -1991,7 +1991,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
19911991workspaceDir: "/tmp",
19921992env: {},
19931993}),
1994-).toEqual([]);
1994+).toStrictEqual([]);
19951995});
1996199619971997it("treats disabled channel config as a hard manifest-env suppressor", () => {
@@ -2013,7 +2013,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
20132013} as NodeJS.ProcessEnv,
20142014includePersistedAuthState: false,
20152015}),
2016-).toEqual([]);
2016+).toStrictEqual([]);
20172017});
2018201820192019it("lets explicit bundled channel config bypass restrictive allowlists", () => {
@@ -2098,7 +2098,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
20982098env: {},
20992099includePersistedAuthState: false,
21002100}),
2101-).toEqual([]);
2101+).toStrictEqual([]);
2102210221032103expect(
21042104listConfiguredChannelIdsForReadOnlyScope({
@@ -2116,7 +2116,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
21162116env: {},
21172117includePersistedAuthState: false,
21182118}),
2119-).toEqual([]);
2119+).toStrictEqual([]);
21202120});
2121212121222122it("lists explicit configured channels without ambient env triggers", () => {
@@ -2165,7 +2165,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
21652165DEMO_CHANNEL_TOKEN: "ambient",
21662166} as NodeJS.ProcessEnv,
21672167}),
2168-).toEqual([]);
2168+).toStrictEqual([]);
21692169});
2170217021712171it("uses effective read-only channel policy for announce channels", () => {
@@ -2256,7 +2256,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
22562256} as NodeJS.ProcessEnv,
22572257includePersistedAuthState: false,
22582258}),
2259-).toEqual([]);
2259+).toStrictEqual([]);
2260226022612261expect(
22622262hasConfiguredChannelsForReadOnlyScope({
@@ -2286,7 +2286,7 @@ describe("listConfiguredChannelIdsForReadOnlyScope", () => {
22862286} as NodeJS.ProcessEnv,
22872287includePersistedAuthState: false,
22882288}),
2289-).toEqual([]);
2289+).toStrictEqual([]);
22902290});
2291229122922292it("accepts lowercase or mixed-case manifest env vars as read-only configured channel triggers", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。