Skip to content

Commit 4d906cc

Browse files
committed
test(prisma-next): update negative factory assertions to new-convention names
Follow-up to the camelCase rename: the 'no *OrdOre / no string factory' negative assertions checked old-convention names (encryptedBigIntOrdOre, encryptedString) that never existed either way — pass, but off-convention. Now check the new-convention names (bigIntOrdOre, textOrdOre, string). Claude-Session: https://claude.ai/code/session_01MxTTPaPP16m6br7Hoab94w
1 parent 4d386ae commit 4d906cc

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

packages/prisma-next/test/column-types.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,12 @@ describe('v3 TS factories', () => {
113113
})
114114
})
115115

116-
it('exposes no *OrdOre factories and no v3 encryptedString', () => {
116+
it('exposes no *OrdOre factories and no v3 string factory', () => {
117117
const exported = columnTypes as Record<string, unknown>
118-
expect(exported['encryptedBigIntOrdOre']).toBeUndefined()
119-
expect(exported['encryptedTextOrdOre']).toBeUndefined()
120-
expect(exported['encryptedString']).toBeUndefined()
118+
expect(exported['bigIntOrdOre']).toBeUndefined()
119+
expect(exported['textOrdOre']).toBeUndefined()
120+
// v3 text uses `text`/`textEq`/`textSearch`/… — there is no `string`.
121+
expect(exported['string']).toBeUndefined()
121122
})
122123
})
123124

0 commit comments

Comments
 (0)