added cypress e2e tests

This commit is contained in:
Wenszel
2023-12-19 09:27:47 +01:00
parent 97513eac2d
commit ce9e93d68f
13 changed files with 2467 additions and 35 deletions
+2 -2
View File
@@ -17,9 +17,9 @@ const getJoinableRoom = async () => {
return await Room.findOne({ full: false, started: false }).exec();
};
const createNewRoom = data => {
const createNewRoom = async data => {
const room = new Room(data);
room.save();
await room.save();
return room;
};