Closed sbansla closed 2 years ago
Could you link the issue that this PR solves, in the description ?
Could you link the issue that this PR solves, in the description ?
Added
High-level feedback on the new tests: they do execute the new/changed lines and have assertions, but the assertions are overly loose. They should assert on the expected impact of the new behavior rather than the new behavior not having a negative impact.
Let me know if you'd like to sync for more discussion/clarification.
---> Corrected the test cases wherever possible. File: TwilioRestClientTest, I have marked variable twilioRestClientExtension as @Injectable. If I don't mark it as @Injectable, Execution of method won't happen. twilioRestClientExtension.request(request) --> Won't succeed without @Injectable This behaviour was strange to me.
Kudos, SonarCloud Quality Gate passed!
Fixes
Standardisation of UserAgent String as per below mentioned doc https://docs.google.com/document/d/1dDAvu9N4wkTnZKmWx5iiMfU42b7qYLAegA_QbZoBkU0/edit#
Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.