Skip to content

Commit 9b403e3

Browse files
committed
fix tests
1 parent 09ce397 commit 9b403e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/server/tests/api/rest.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,8 +2340,8 @@ describe('REST server tests', () => {
23402340
prisma,
23412341
});
23422342

2343-
expect(r.status).toBe(204);
2344-
expect(r.body).toBeUndefined();
2343+
expect(r.status).toBe(200);
2344+
expect(r.body).toMatchObject({ meta: {} });
23452345
});
23462346

23472347
it('deletes an item with compound id', async () => {
@@ -2355,8 +2355,8 @@ describe('REST server tests', () => {
23552355
path: `/postLike/1${idDivider}user1`,
23562356
prisma,
23572357
});
2358-
expect(r.status).toBe(204);
2359-
expect(r.body).toBeUndefined();
2358+
expect(r.status).toBe(200);
2359+
expect(r.body).toMatchObject({ meta: {} });
23602360
});
23612361

23622362
it('returns 404 if the user does not exist', async () => {

0 commit comments

Comments
 (0)