Skip to content

Commit

Permalink
test: added subscription assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Dec 9, 2024
1 parent 859fd97 commit f22ed6c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/meteor/tests/end-to-end/api/rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3621,6 +3621,16 @@ describe('[Rooms]', () => {
.expect(200)
.expect((res) => {
expect(res.body).to.have.property('success', true);
});

void request
.get(api('subscriptions.getOne'))
.set(credentials)
.query({ roomId: room._id })
.send()
.expect((res) => {
expect(res.body).to.have.property('success', true);
expect(res.body.subscription).to.have.property('open', true);
})
.end(done);
});
Expand Down

0 comments on commit f22ed6c

Please sign in to comment.