Skip to content

Commit a54c0f8

Browse files
committed
Adds test for @@fulltext
1 parent fe4499c commit a54c0f8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

packages/schema/tests/schema/validation/attribute-validation.test.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,25 @@ describe('Attribute tests', () => {
226226
}
227227
`);
228228

229+
await loadModel(`
230+
${ prelude }
231+
model A {
232+
id String @id
233+
x String
234+
y String
235+
z String
236+
@@fulltext([x, y, z])
237+
}
238+
239+
model B {
240+
id String @id
241+
x String
242+
y String
243+
z String
244+
@@fulltext([x, y, z], map: "n")
245+
}
246+
`);
247+
229248
await loadModel(`
230249
${prelude}
231250
model A {

0 commit comments

Comments
 (0)