mirror of
https://github.com/detleph/server.git
synced 2026-09-08 07:56:18 +02:00
FIX: Due to changes in Prisma schema tests broke
Added property description broke stuff :-(
This commit is contained in:
@@ -28,7 +28,7 @@ describe("events", () => {
|
|||||||
it("should return an array with all the objects", (done) => {
|
it("should return an array with all the objects", (done) => {
|
||||||
prisma.event
|
prisma.event
|
||||||
.create({
|
.create({
|
||||||
data: { date: new Date(Date.now()).toISOString(), name: "yes" },
|
data: { date: new Date(Date.now()).toISOString(), name: "yes", description: "Hallo hansi" },
|
||||||
})
|
})
|
||||||
.then((a) => {
|
.then((a) => {
|
||||||
chai
|
chai
|
||||||
@@ -62,6 +62,7 @@ describe("events", () => {
|
|||||||
res.body.should.have.property("pid");
|
res.body.should.have.property("pid");
|
||||||
res.body.should.have.property("name");
|
res.body.should.have.property("name");
|
||||||
res.body.should.have.property("date");
|
res.body.should.have.property("date");
|
||||||
|
res.body.should.have.property("description");
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user