Skip to content

Commit

Permalink
Fixed teams.listRooms api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc committed Mar 23, 2021
1 parent 4f48cbd commit 0c9b6fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/end-to-end/api/25-teams.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ describe('[Teams]', () => {
it('should return only public rooms for public team', (done) => {
updatePermission('view-all-team-channels', []).then(() => {
request.get(api('teams.listRooms'))
.set(credentials)
.set(testUserCredentials)
.query({
teamId: publicTeam._id,
})
Expand All @@ -365,9 +365,9 @@ describe('[Teams]', () => {
});

it('should return all rooms for public team', (done) => {
updatePermission('view-all-team-channels', ['admin']).then(() => {
updatePermission('view-all-team-channels', ['user']).then(() => {
request.get(api('teams.listRooms'))
.set(credentials)
.set(testUserCredentials)
.query({
teamId: publicTeam._id,
})
Expand Down

0 comments on commit 0c9b6fc

Please sign in to comment.