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 Sep 13, 2024
1 parent 5e26f5e commit c7a0706
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 c7a0706

Please sign in to comment.