Skip to content

Commit 5f65b08

Browse files
committed
fix: use snake_case column names in raw SQL for CONTEXT test
Prisma model fields use camelCase but the actual DB columns are snake_case via @Map directives.
1 parent f53920a commit 5f65b08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/__tests__/integration/identifier-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe("identifier-service", () => {
9393

9494
// Create a context element bypassing element validation middleware
9595
await prisma.$executeRaw`
96-
INSERT INTO assurance_elements (id, "caseId", "elementType", "parentId", name, description, "createdById", "createdAt", "updatedAt")
96+
INSERT INTO assurance_elements (id, case_id, element_type, parent_id, name, description, created_by_id, created_at, updated_at)
9797
VALUES (gen_random_uuid(), ${testCase.id}, 'CONTEXT', ${goal.id}, 'X1', 'Test context', ${user.id}, NOW(), NOW())
9898
`;
9999

0 commit comments

Comments
 (0)