From 474b5dccf90b9ca3baa04cd722d5fdf371e23d8f Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 1 Jul 2023 12:36:57 +0000 Subject: [PATCH] fix: type errors in tests --- backend/src/templateFormatter.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/templateFormatter.test.ts b/backend/src/templateFormatter.test.ts index ff2e809f..1713f839 100644 --- a/backend/src/templateFormatter.test.ts +++ b/backend/src/templateFormatter.test.ts @@ -8,7 +8,7 @@ test("Parses plain string templates correctly", (t) => { test("Parses templates with variables correctly", (t) => { const result = parseTemplate("foo {bar} baz"); - t.deepEqual(result, [ + t.deepEqual(result, [ "foo ", { identifier: "bar", @@ -20,7 +20,7 @@ test("Parses templates with variables correctly", (t) => { test("Parses templates with function variables correctly", (t) => { const result = parseTemplate('foo {bar("str", 5.07)} baz'); - t.deepEqual(result, [ + t.deepEqual(result, [ "foo ", { identifier: "bar", @@ -32,7 +32,7 @@ test("Parses templates with function variables correctly", (t) => { test("Parses function variables with variable arguments correctly", (t) => { const result = parseTemplate('foo {bar("str", 5.07, someVar)} baz'); - t.deepEqual(result, [ + t.deepEqual(result, [ "foo ", { identifier: "bar", @@ -51,7 +51,7 @@ test("Parses function variables with variable arguments correctly", (t) => { test("Parses function variables with function variable arguments correctly", (t) => { const result = parseTemplate('foo {bar("str", 5.07, deeply(nested(8)))} baz'); - t.deepEqual(result, [ + t.deepEqual(result, [ "foo ", { identifier: "bar", @@ -105,7 +105,7 @@ test("Edge case #1", async (t) => { test("Parses empty string args as empty strings", async (t) => { const result = parseTemplate('{foo("")}'); - t.deepEqual(result, [ + t.deepEqual(result, [ { identifier: "foo", args: [""],