Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix assertions for string templates

TzeYiingd59b4b307ec6
diff --git a/studio/tests/pages/projects/Logs.utils.test.js b/studio/tests/pages/projects/Logs.utils.test.js
index b74f812e17b..ffb5e258a44 100644
--- a/studio/tests/pages/projects/Logs.utils.test.js
+++ b/studio/tests/pages/projects/Logs.utils.test.js
@@ -46,7 +46,7 @@ describe.each(Object.values(LogsTableName))('%s', (table) => {
? [
{
filter: { [root]: { [child]: false } },
- excludes: [root, child, stringTemplateKey, templates[stringTemplateKey], '()'],
+ excludes: [templates[stringTemplateKey], '()'],
},
]
: []),
@@ -57,9 +57,6 @@ describe.each(Object.values(LogsTableName))('%s', (table) => {
expect(generated).not.toMatch(/function[ A-Za-z_-]+\(.+\).+\{.+return.+\}/)
expect(generated).not.toMatch(/\=\>|\$\{.+\}/)
expect(generated).not.toContain('return')
- if (stringTemplateKey) {
- console.log(generated)
- }
contains.forEach((str) => expect(generated).toContain(str))
excludes.forEach((str) => expect(generated).not.toContain(str))
})