Skip to content

Commit 72427de

Browse files
committed
fix tests
1 parent d11bde4 commit 72427de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/language/test/expression-validation.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, it } from 'vitest';
22
import { loadSchema, loadSchemaWithError } from './utils';
33

44
describe('Expression Validation Tests', () => {
5-
it('should reject model comparison', async () => {
5+
it('should reject model comparison1', async () => {
66
await loadSchemaWithError(
77
`
88
model User {
@@ -15,14 +15,15 @@ describe('Expression Validation Tests', () => {
1515
id Int @id
1616
title String
1717
author User @relation(fields: [authorId], references: [id])
18+
authorId Int
1819
@@allow('all', author == this)
1920
}
2021
`,
2122
'comparison between models is not supported',
2223
);
2324
});
2425

25-
it('should reject model comparison', async () => {
26+
it('should reject model comparison2', async () => {
2627
await loadSchemaWithError(
2728
`
2829
model User {

0 commit comments

Comments
 (0)