fix(tests): update console output expectations to include quotes for string values

This commit is contained in:
2026-04-27 16:47:11 +05:30
parent 9b49d92cb8
commit af1daab2a8
+3 -3
View File
@@ -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 () => {