-
Notifications
You must be signed in to change notification settings - Fork 290
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
test: Bootstrap test cases for the SDPMapper class #4554
Conversation
@@ -124,6 +124,6 @@ z.calling.SDPMapper = { | |||
|
|||
sessionDescription = sdpLines.join('\r\n'); | |||
const sdpInit = {sdp: sessionDescription, type}; | |||
return Promise.resolve({iceCandidates, sdp: sdpInit}); |
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.
Noticeable change, I decide to remove the promise wrapping of the result.
Since it is not needed here (nothing async), it feels more natural and the api is easier to use
6315767
to
55cf6bf
Compare
43121f1
to
414d768
Compare
414d768
to
8296215
Compare
negotiationMode: () => '', | ||
}; | ||
|
||
// local SDP |
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.
I think we can remove that comment because {sdp: localSdp}
make already clear that it is the local SDP. Same applies to the remoteSdp
.
LGTM |
No description provided.