Skip to content

Commit f53920a

Browse files
committed
fix: use correct table name in CONTEXT prefix test
The Prisma model AssuranceElement maps to table assurance_elements. The raw SQL insert was using the model name instead of the table name.
1 parent f41a235 commit f53920a

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 "AssuranceElement" (id, "caseId", "elementType", "parentId", name, description, "createdById", "createdAt", "updatedAt")
96+
INSERT INTO assurance_elements (id, "caseId", "elementType", "parentId", name, description, "createdById", "createdAt", "updatedAt")
9797
VALUES (gen_random_uuid(), ${testCase.id}, 'CONTEXT', ${goal.id}, 'X1', 'Test context', ${user.id}, NOW(), NOW())
9898
`;
9999

0 commit comments

Comments
 (0)