From 49bde018b5e05a5b295d6c8052f9e54900fb23ec Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 9 Aug 2026 09:58:02 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Remove=20leftover=20console.log?= =?UTF-8?q?=20from=20extensions=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> --- src/extensions.test.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/extensions.test.ts b/src/extensions.test.ts index f888ed4..104eda9 100644 --- a/src/extensions.test.ts +++ b/src/extensions.test.ts @@ -130,13 +130,10 @@ describe("extensions", () => { it("has no host globals inside the sandbox", async () => { await runExtensions(mockEngine as SumEngine, [ - { name: "probe", code: "if (typeof window !== 'undefined' || typeof fetch !== 'undefined') throw new Error('leak');" }, - { name: "log", code: "console.log('hi');" }, + { name: "probe", code: "if (typeof window !== 'undefined' || typeof fetch !== 'undefined' || typeof console !== 'undefined') throw new Error('leak');" }, ]); - expect(consoleErrorSpy).toHaveBeenCalledTimes(1); - expect(consoleErrorSpy.mock.calls[0][0]).toBe("extension log failed:"); - expect(consoleErrorSpy.mock.calls[0][1].message).toMatch(/console/); + expect(consoleErrorSpy).not.toHaveBeenCalled(); }); it("interrupts an infinite loop at load time", async () => {