Added tests for the event endpoints

Also installed chai, chai http & mocha
This commit is contained in:
Stefan-5422
2021-10-18 13:14:13 +02:00
parent a966bfffd9
commit 8d50c44b7e
4 changed files with 968 additions and 4 deletions
+3
View File
@@ -13,6 +13,7 @@ async function main() {
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
// All API endpoints are behind /api/...
app.use("/api/events", eventRouter);
app.listen(process.env.PORT, () => {
@@ -27,3 +28,5 @@ main()
.finally(async () => {
await prisma.$disconnect();
});
export default app;