Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
heitortanoue committed Sep 11, 2023
1 parent cc6dda3 commit 89d274b
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions apps/meteor/tests/end-to-end/api/24-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -2523,24 +2523,24 @@ describe('Meteor.methods', function () {
.expect(200);
});

it('should not allow an user to send messages', async () => {
await request
.post(api('chat.sendMessage'))
.set(testUserCredentials)
.send({
message: {
msg: 'Sample message',
rid,
},
})
.expect('Content-Type', 'application/json')
.expect(400)
.expect((res) => {
expect(res.body).to.have.property('success', false);
expect(res.body).to.have.property('error').that.is.a('string');
expect(res.body.error).to.equal('You_cannot_send_messages_to_read_only_channels');
});
});
it('should not allow an user to send messages', async () => {
await request
.post(api('chat.sendMessage'))
.set(testUserCredentials)
.send({
message: {
msg: 'Sample message',
rid,
},
})
.expect('Content-Type', 'application/json')
.expect(400)
.expect((res) => {
expect(res.body).to.have.property('success', false);
expect(res.body).to.have.property('error').that.is.a('string');
expect(res.body.error).to.equal('You_cannot_send_messages_to_read_only_channels');
});
});

describe('- when unmuting a user in a read-only room', () => {
it('should unmute an user in a read-only room', async () => {
Expand Down

0 comments on commit 89d274b

Please sign in to comment.