alexa / alexa-skills-kit-sdk-for-nodejs

The Alexa Skills Kit SDK for Node.js helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Apache License 2.0
3.12k stars 737 forks source link

test: add a test case for appendAdditionalUserAgent in ask-sdk-core #627

Closed hideokamoto closed 4 years ago

hideokamoto commented 4 years ago

Description

Just add a test case for ask-sdk-core.

Motivation and Context

I check ask-sdk-core's test coverage.

=============================== Coverage summary ===============================
Statements   : 99.78% ( 452/453 )
Branches     : 98.4% ( 246/250 )
Functions    : 96.46% ( 109/113 )
Lines        : 99.77% ( 429/430 )
================================================================================

After adding the test, the Branches will be 100%.

=============================== Coverage summary ===============================
Statements   : 100% ( 453/453 )
Branches     : 100% ( 250/250 )
Functions    : 96.46% ( 109/113 )
Lines        : 100% ( 430/430 )
================================================================================

Testing

Just run a unit test code.

Screenshots (if appropriate)

Types of changes

Checklist

License

ShenChen93 commented 4 years ago

Hi @hideokamoto

Thanks for the PR. Merged !