Skip to content

Commit

Permalink
fix rpc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 committed May 7, 2024
1 parent d6ea541 commit 786a559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/tests/api/rpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe('RPC API Handler Tests', () => {
r = await handleRequest({
method: 'get',
path: '/post/check',
query: { q: JSON.stringify({ operation: 'read', filter: { published: false } }) },
query: { q: JSON.stringify({ operation: 'read', where: { published: false } }) },
prisma: enhance(),
});
expect(r.status).toBe(200);
Expand All @@ -155,7 +155,7 @@ describe('RPC API Handler Tests', () => {
r = await handleRequest({
method: 'get',
path: '/post/check',
query: { q: JSON.stringify({ operation: 'read', filter: { authorId: '1', published: false } }) },
query: { q: JSON.stringify({ operation: 'read', where: { authorId: '1', published: false } }) },
prisma: enhance({ id: '1' }),
});
expect(r.status).toBe(200);
Expand Down

0 comments on commit 786a559

Please sign in to comment.