-
Notifications
You must be signed in to change notification settings - Fork 400
test: add missing unit and integration test #472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good and have question about uuid
.
/** | ||
* The subscriber uuid to get the current state. | ||
*/ | ||
uuid: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uuid
is present in Presence.GetPresenceStateParameters
and set by SDK itself if user omit to the currently configured userId
.
if (!serviceResponse.payload) return { channels: [] }; | ||
|
||
return { channels: serviceResponse.payload.channels }; | ||
return { channels: serviceResponse.payload.channels || [] }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was it found by crafted response? Server usually returns channels
.
unit tests added for input parameter validation and response parsing including edge cases.
additional integration tests for edge cases.