Skip to content

Commit 9acd3e6

Browse files
committed
fix test
1 parent f8010a3 commit 9acd3e6

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

packages/runtime/test/client-api/create.test.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -289,21 +289,4 @@ describe.each(createClientSpecs(PG_DB_NAME))('Client create tests', ({ createCli
289289
expect(u3.posts).toHaveLength(3);
290290
expect(u3.posts.map((p) => p.title)).toEqual(expect.arrayContaining(['Post1', 'Post2', 'Post4']));
291291
});
292-
293-
it('rejects empty relation payload', async () => {
294-
await expect(
295-
client.post.create({
296-
data: { title: 'Post1', author: {} },
297-
}),
298-
).rejects.toThrow('At least one action is required');
299-
300-
await expect(
301-
client.user.create({
302-
data: {
303-
304-
posts: {},
305-
},
306-
}),
307-
).rejects.toThrow(QueryError);
308-
});
309292
});

0 commit comments

Comments
 (0)