You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the endpoint to receive all blocked users for a user /mock/users/blocks on a newly generated mock-api, the response looks like
{
"data": null
}
According to the official docs, the response should be an empty array and after testing it, the response looks more like
{
"data": [],
"pagination": {}
}
This is just a minor thing, but in my case, I use the mock-api in automated tests to get more or less realistic results without touching the real Helix API. And because I expect an array there, my tests fail. Also, the pagination is missing, even though its empty.
What is the problem?
When using the endpoint to receive all blocked users for a user
/mock/users/blocks
on a newly generated mock-api, the response looks likeAccording to the official docs, the response should be an empty array and after testing it, the response looks more like
This is just a minor thing, but in my case, I use the mock-api in automated tests to get more or less realistic results without touching the real Helix API. And because I expect an array there, my tests fail. Also, the pagination is missing, even though its empty.
Operating System
Ubuntu 22.04
Architecture Version (x86, x64, arm, etc)
x64
Steps to reproduce
twitch mock-api start
Relevant log output
No response
The text was updated successfully, but these errors were encountered: