Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

test: quote catalog table names through quoteIdentifier

justin394fc3da2de7
diff --git a/tests/api-integration/helpers/database.ts b/tests/api-integration/helpers/database.ts
index 1a8f9a0d5..83d897cca 100644
--- a/tests/api-integration/helpers/database.ts
+++ b/tests/api-integration/helpers/database.ts
@@ -106,7 +106,7 @@ export async function resetTestDatabase() {
);
}
- const formattedTableNames = tableNames.map((name) => `"${name}"`).join(", ");
+ const formattedTableNames = tableNames.map(quoteIdentifier).join(", ");
await db.execute(
sql.raw(`TRUNCATE TABLE ${formattedTableNames} RESTART IDENTITY CASCADE`),