From 7d84143ae626c6961caaae713ea04b759a7322d4 Mon Sep 17 00:00:00 2001 From: Danielo Rodriguez Date: Sun, 10 Dec 2023 11:43:32 +0100 Subject: [PATCH] chore: log errors on tests --- src/core/templateParser.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/templateParser.test.ts b/src/core/templateParser.test.ts index b755d200..050141f9 100644 --- a/src/core/templateParser.test.ts +++ b/src/core/templateParser.test.ts @@ -44,6 +44,7 @@ describe("parseTemplate", () => { it("should parse a valid template with several variables", () => { const template = "Hello, {{name}}! You are {{age}} years old."; const result = parseTemplate(template); + logError(result); expect(result).toEqual(E.of( [ { _tag: "text", value: "Hello, " }, @@ -58,6 +59,7 @@ describe("parseTemplate", () => { it("should allow single braces in a template", () => { const template = "This is code {bla}"; const result = parseTemplate(template); + logError(result); expect(result).toEqual(E.of( [ { _tag: "text", value: "This is code {bla}" }, @@ -67,6 +69,7 @@ describe("parseTemplate", () => { it("should allow single braces in a template even if it has variables", () => { const template = "This is code {bla} {{name}}"; const result = parseTemplate(template); + logError(result); expect(result).toEqual(E.of( [ { _tag: "text", value: "This is code {bla} " }, @@ -91,6 +94,7 @@ describe("parseTemplate", () => { it("should allow spaces within open and close braces", () => { const template = "Hey, {{ name }}!"; const result = parseTemplate(template); + logError(result); expect(result).toEqual(E.of( [ { _tag: "text", value: "Hey, " },