Commit 69de295e authored by Tim Kinnane's avatar Tim Kinnane
Browse files

test(api): Fix failing test from rest API updates

See https://github.com/RocketChat/docs/issues/870
parent 2b171ca0
......@@ -62,7 +62,8 @@ describe('api', () => {
it('returns data from complex calls with auth and parameters', async () => {
await api.login()
const result = await api.get('users.list', {
fields: { 'username': 1 }
fields: { 'username': 1 },
query: { type: { $in: ['user', 'bot'] } }
}, true)
const users = result.users.map((user) => user.username)
expect(users).to.include(botUser.username, mockUser.username)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment