Skip to content
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

Merged
merged 10 commits into from
Sep 13, 2018
Merged

Conversation

atomrc
Copy link
Contributor

@atomrc atomrc commented Sep 11, 2018

No description provided.

@@ -124,6 +124,6 @@ z.calling.SDPMapper = {

sessionDescription = sdpLines.join('\r\n');
const sdpInit = {sdp: sessionDescription, type};
return Promise.resolve({iceCandidates, sdp: sdpInit});
Copy link
Contributor Author

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

@atomrc atomrc changed the title test: bootstrap test cases for the SDPMapper class test: Bootstrap test cases for the SDPMapper class Sep 12, 2018
negotiationMode: () => '',
};

// local SDP
Copy link
Contributor

@bennycode bennycode Sep 13, 2018

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.

@atomrc atomrc merged commit a245ecb into dev Sep 13, 2018
@atomrc atomrc deleted the test/sdp_mapper_tests branch September 13, 2018 10:34
@gregor
Copy link
Contributor

gregor commented Sep 13, 2018

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants