Skip to content

Commit

Permalink
test: fix room creation bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto committed Feb 14, 2024
1 parent 442b9da commit 01ae48a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/meteor/tests/end-to-end/api/24-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -2641,7 +2641,9 @@ describe('Meteor.methods', function () {
).body.channel;
createdRooms.push(room);
});
after(() => Promise.all([createdRooms.map((r) => deleteRoom({ type: 'c', roomId: r._id })), deleteUser(user), deleteUser(guestUser)]));
after(() =>
Promise.all([...createdRooms.map((r) => deleteRoom({ type: 'c', roomId: r._id })), deleteUser(user), deleteUser(guestUser)]),
);

it('should fail if not logged in', (done) => {
request
Expand Down Expand Up @@ -2707,7 +2709,7 @@ describe('Meteor.methods', function () {
}),
);
}
createdRooms = [...createdRooms, ...(await Promise.all(promises))];
createdRooms = [...createdRooms, ...(await Promise.all(promises)).map((res) => res.body.channel)];

request
.post(methodCall('addUsersToRoom'))
Expand Down

0 comments on commit 01ae48a

Please sign in to comment.