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 Jul 25, 2024
1 parent e0dd91d commit 2f08aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/tests/end-to-end/api/direct-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ describe('[Direct Messages]', () => {
});
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 2f08aa3

Please sign in to comment.