Skip to content

Commit

Permalink
test: fix im.messages.others endpoint tests (#32426)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 authored and ggazzo committed Jun 11, 2024
1 parent ddd3214 commit ada6e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/tests/end-to-end/api/04-direct-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ describe('[Direct Messages]', function () {
});
it('should fail when the endpoint is disabled and the user doesnt have permission', async () => {
await updateSetting('API_Enable_Direct_Message_History_EndPoint', false);
await updatePermission('view-room-administration', ['admin']);
await updatePermission('view-room-administration', []);
await request
.get(api('im.messages.others'))
.set(credentials)
Expand Down

0 comments on commit ada6e44

Please sign in to comment.