From 01ba2bd0c0b5c396392fd32ce0e8c430d3f90054 Mon Sep 17 00:00:00 2001 From: Stefan <32109571+Stefan-5422@users.noreply.github.com> Date: Wed, 17 Nov 2021 21:36:06 +0100 Subject: [PATCH] FIX: Due to changes in Prisma schema tests broke Added property description broke stuff :-( --- src/Tests/events.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tests/events.test.ts b/src/Tests/events.test.ts index bf3c107..846596b 100644 --- a/src/Tests/events.test.ts +++ b/src/Tests/events.test.ts @@ -28,7 +28,7 @@ describe("events", () => { it("should return an array with all the objects", (done) => { prisma.event .create({ - data: { date: new Date(Date.now()).toISOString(), name: "yes" }, + data: { date: new Date(Date.now()).toISOString(), name: "yes", description: "Hallo hansi" }, }) .then((a) => { chai @@ -62,6 +62,7 @@ describe("events", () => { res.body.should.have.property("pid"); res.body.should.have.property("name"); res.body.should.have.property("date"); + res.body.should.have.property("description"); done(); }); });