


















@@ -82,7 +82,7 @@ afterEach(() => {
82828383describe("scanStatusJsonFast", () => {
8484it("does not preload configured channel plugins for the lean JSON path", async () => {
85-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
85+mocks.hasConfiguredChannels.mockReturnValue(true);
86868787await scanStatusJsonFast({}, {} as never);
8888@@ -97,7 +97,7 @@ describe("scanStatusJsonFast", () => {
9797});
98989999it("keeps resolved and source channel configs available without loading runtime plugins", async () => {
100-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
100+mocks.hasConfiguredChannels.mockReturnValue(true);
101101applyStatusScanDefaults(mocks, {
102102hasConfiguredChannels: true,
103103sourceConfig: {
@@ -128,15 +128,15 @@ describe("scanStatusJsonFast", () => {
128128});
129129130130it("skips plugin compatibility loading even when configured channels are present", async () => {
131-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
131+mocks.hasConfiguredChannels.mockReturnValue(true);
132132133133await scanStatusJsonFast({}, {} as never);
134134135135expect(mocks.buildPluginCompatibilityNotices).not.toHaveBeenCalled();
136136});
137137138138it("keeps default fast JSON update scans local-only", async () => {
139-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
139+mocks.hasConfiguredChannels.mockReturnValue(true);
140140141141await scanStatusJsonFast({ timeoutMs: 1234 }, {} as never);
142142@@ -150,7 +150,7 @@ describe("scanStatusJsonFast", () => {
150150});
151151152152it("restores registry-backed update checks and remote git fetches when --all is requested", async () => {
153-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
153+mocks.hasConfiguredChannels.mockReturnValue(true);
154154155155await scanStatusJsonFast({ all: true }, {} as never);
156156@@ -164,7 +164,7 @@ describe("scanStatusJsonFast", () => {
164164});
165165166166it("keeps the local status RPC fallback off the default fast JSON path", async () => {
167-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
167+mocks.hasConfiguredChannels.mockReturnValue(true);
168168mocks.callGateway.mockResolvedValue({ sessions: 1 });
169169170170await scanStatusJsonFast({}, {} as never);
@@ -174,15 +174,15 @@ describe("scanStatusJsonFast", () => {
174174});
175175176176it("honors explicit gateway probe timeouts on the lean JSON path", async () => {
177-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
177+mocks.hasConfiguredChannels.mockReturnValue(true);
178178179179await scanStatusJsonFast({ timeoutMs: 5000 }, {} as never);
180180181181expect(mocks.probeGateway).toHaveBeenCalledWith(expect.objectContaining({ timeoutMs: 5000 }));
182182});
183183184184it("keeps configured gateway handshake timeouts on the lean JSON path", async () => {
185-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
185+mocks.hasConfiguredChannels.mockReturnValue(true);
186186applyStatusScanDefaults(mocks, {
187187resolvedConfig: {
188188 ...createStatusMemorySearchConfig(),
@@ -201,7 +201,7 @@ describe("scanStatusJsonFast", () => {
201201});
202202203203it("restores the local status RPC fallback when --all is requested", async () => {
204-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
204+mocks.hasConfiguredChannels.mockReturnValue(true);
205205mocks.callGateway.mockResolvedValue({ sessions: 1 });
206206207207await scanStatusJsonFast({ all: true }, {} as never);
@@ -215,7 +215,7 @@ describe("scanStatusJsonFast", () => {
215215});
216216217217it("keeps the fast JSON summary off the channel plugin summary path", async () => {
218-mocks.hasPotentialConfiguredChannels.mockReturnValue(true);
218+mocks.hasConfiguredChannels.mockReturnValue(true);
219219220220await scanStatusJsonFast({}, {} as never);
221221@@ -230,7 +230,7 @@ describe("scanStatusJsonFast", () => {
230230const result = await scanStatusJsonFast({}, {} as never);
231231232232expect(result.memory).toBeNull();
233-expect(mocks.hasPotentialConfiguredChannels).not.toHaveBeenCalled();
233+expect(mocks.hasConfiguredChannels).not.toHaveBeenCalled();
234234expect(mocks.resolveMemorySearchConfig).not.toHaveBeenCalled();
235235expect(mocks.getMemorySearchManager).not.toHaveBeenCalled();
236236});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。