Skip to content

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

chore: updated string template test to consider search query values

TzeYiing93214d1aa329
diff --git a/studio/tests/pages/projects/Logs.utils.test.js b/studio/tests/pages/projects/Logs.utils.test.js
index ffb5e258a44..eb3d0a56fe1 100644
--- a/studio/tests/pages/projects/Logs.utils.test.js
+++ b/studio/tests/pages/projects/Logs.utils.test.js
@@ -14,7 +14,6 @@ describe.each(Object.values(LogsTableName))('%s', (table) => {
}
})
const [root, child] = (stringTemplateKey || '').split('.')
- console.log(stringTemplateKey, templates[stringTemplateKey])
describe.each([
{ filter: { search_query: '' } },
{ filter: { search_query: undefined } },
@@ -45,8 +44,9 @@ describe.each(Object.values(LogsTableName))('%s', (table) => {
...(stringTemplateKey
? [
{
- filter: { [root]: { [child]: false } },
+ filter: { search_query: 'some-search-query', [root]: { [child]: false } },
excludes: [templates[stringTemplateKey], '()'],
+ contains: ['some-search-query'],
},
]
: []),