Skip to content

Commit ae4e359

Browse files
test: add response validation
1 parent 1c32dd9 commit ae4e359

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • apps/meteor/tests/end-to-end/api

apps/meteor/tests/end-to-end/api/rooms.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ describe('[Rooms]', () => {
152152
.get(api('subscriptions.getOne'))
153153
.set(credentials)
154154
.query({ roomId: testChannel._id })
155+
.expect('Content-Type', 'application/json')
155156
.expect(200)
156157
.expect((res) => {
158+
expect(res.body).to.have.property('success', true);
157159
expect(res.body.subscription).to.have.property('draft', draft);
158160
});
159161

0 commit comments

Comments
 (0)