feat: move findAll to return arrays

This commit is contained in:
Agusti Fernandez Pardo committed 2022-03-28 16:05:00 +02:00
1 parent 19934d8c3a
commit 1241ae6cfc
8 files changed
+14 -17

No files matched your search

@@ -14,8 +14,6 @@ describe("DELETE /api/api-keys/[id]/delete with valid id as string returns an ap
});
// const apiKey = await prisma.apiKey.findUnique({ where: { id: req.query.id} });
await handleDeleteApiKey(req, res);
// console.log(res)
expect(res._getStatusCode()).toBe(204);
expect(JSON.parse(res._getData())).toEqual({message: `api-key with id: ${apiKey?.id} deleted successfully`});
});