From af1daab2a853a601ccbcdf061397705a1e4039dd Mon Sep 17 00:00:00 2001 From: bendtherules Date: Mon, 27 Apr 2026 16:47:11 +0530 Subject: [PATCH] fix(tests): update console output expectations to include quotes for string values --- src/test/evaluateInEngine262.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/evaluateInEngine262.test.ts b/src/test/evaluateInEngine262.test.ts index 1c73166..eb4dad0 100644 --- a/src/test/evaluateInEngine262.test.ts +++ b/src/test/evaluateInEngine262.test.ts @@ -196,8 +196,8 @@ describe("evaluateInEngine262", () => { (entry) => entry.method === "log", ); expect(logEntry).toBeDefined(); - expect(logEntry?.values).toContain("hello"); - expect(logEntry?.values).toContain(123); + expect(logEntry?.values).toContain("'hello'"); + expect(logEntry?.values).toContain("123"); }); test("should capture console.warn output", async () => { @@ -210,7 +210,7 @@ describe("evaluateInEngine262", () => { (entry) => entry.method === "warn", ); expect(warnEntry).toBeDefined(); - expect(warnEntry?.values).toContain("warning message"); + expect(warnEntry?.values).toContain("'warning message'"); }); test("should capture multiple console calls", async () => {