From 89d274b73a0931d4e57cc8f15c7bee94ebf6ef6e Mon Sep 17 00:00:00 2001 From: Heitor Tanoue Date: Mon, 11 Sep 2023 17:53:33 -0300 Subject: [PATCH] fix lint --- .../meteor/tests/end-to-end/api/24-methods.js | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/apps/meteor/tests/end-to-end/api/24-methods.js b/apps/meteor/tests/end-to-end/api/24-methods.js index 2f3beac4af65..e3b2e0c824c1 100644 --- a/apps/meteor/tests/end-to-end/api/24-methods.js +++ b/apps/meteor/tests/end-to-end/api/24-methods.js @@ -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 () => {