Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.js.SDK
Commits
69de295e
Commit
69de295e
authored
Aug 08, 2018
by
Tim Kinnane
Browse files
test(api): Fix failing test from rest API updates
See
https://github.com/RocketChat/docs/issues/870
parent
2b171ca0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/api.spec.ts
View file @
69de295e
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment