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).
This commit is contained in:
deepsource-autofix[bot] 2024-05-21 15:23:16 +00:00 committed by GitHub
parent 4e4df9610f
commit 08df5165c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@ const TestData: Item[] = [
availability: true, availability: true,
name: "Bar of Soap", name: "Bar of Soap",
price: 2.99, price: 2.99,
description: `Example`, description: "Example",
labels: [Labels.vegan, Labels.spicy], labels: [Labels.vegan, Labels.spicy],
}, },
{ {
@ -14,7 +14,7 @@ const TestData: Item[] = [
availability: true, availability: true,
name: "Sock", name: "Sock",
price: 1.99, price: 1.99,
description: `Example`, description: "Example",
labels: [Labels.vegan, Labels.fish, Labels.nut, Labels.spicy], labels: [Labels.vegan, Labels.fish, Labels.nut, Labels.spicy],
}, },
{ {
@ -22,7 +22,7 @@ const TestData: Item[] = [
availability: false, availability: false,
name: "Brick", name: "Brick",
price: 0, price: 0,
description: `Example`, description: "Example",
labels: [Labels.spicy], labels: [Labels.spicy],
}, },
{ {
@ -30,7 +30,7 @@ const TestData: Item[] = [
availability: true, availability: true,
name: "Toast", name: "Toast",
price: 3.49, price: 3.49,
description: `Example`, description: "Example",
labels: [Labels.gluten], labels: [Labels.gluten],
}, },
{ {
@ -38,7 +38,7 @@ const TestData: Item[] = [
availability: true, availability: true,
name: "water", name: "water",
price: 1, price: 1,
description: `Example`, description: "Example",
labels: [Labels.fish], labels: [Labels.fish],
}, },
{ {
@ -46,7 +46,7 @@ const TestData: Item[] = [
availability: true, availability: true,
name: "Singular slice of bread", name: "Singular slice of bread",
price: 0.39, price: 0.39,
description: `Example`, description: "Example",
labels: [Labels.nut], labels: [Labels.nut],
}, },
{ {