From 08df5165c97ba24e4cc260ca90325f3910885f45 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 15:23:16 +0000 Subject: [PATCH] refactor: replace template strings with regular string literals Template literals are useful when you need: 1. [Interpolated strings](https://en.wikipedia.org/wiki/String_interpolation). --- front/src/lib/test-data.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/front/src/lib/test-data.ts b/front/src/lib/test-data.ts index 79a1f85..8e40ceb 100644 --- a/front/src/lib/test-data.ts +++ b/front/src/lib/test-data.ts @@ -6,7 +6,7 @@ const TestData: Item[] = [ availability: true, name: "Bar of Soap", price: 2.99, - description: `Example`, + description: "Example", labels: [Labels.vegan, Labels.spicy], }, { @@ -14,7 +14,7 @@ const TestData: Item[] = [ availability: true, name: "Sock", price: 1.99, - description: `Example`, + description: "Example", labels: [Labels.vegan, Labels.fish, Labels.nut, Labels.spicy], }, { @@ -22,7 +22,7 @@ const TestData: Item[] = [ availability: false, name: "Brick", price: 0, - description: `Example`, + description: "Example", labels: [Labels.spicy], }, { @@ -30,7 +30,7 @@ const TestData: Item[] = [ availability: true, name: "Toast", price: 3.49, - description: `Example`, + description: "Example", labels: [Labels.gluten], }, { @@ -38,7 +38,7 @@ const TestData: Item[] = [ availability: true, name: "water", price: 1, - description: `Example`, + description: "Example", labels: [Labels.fish], }, { @@ -46,7 +46,7 @@ const TestData: Item[] = [ availability: true, name: "Singular slice of bread", price: 0.39, - description: `Example`, + description: "Example", labels: [Labels.nut], }, {