Hi there
We are running into the following problem when testing our code before submitting it to the store.
The test results are as follows:
i.e. with “Branches” at 68.18% which falls below the 80% threshold required.
However, when looking at the code not covered as shown below:
This is due to the 50% coverage we have in the single file in server/lib
called base64.js:
This file is really an external library we use in a single location to Base64 encode the API key we send to freshdesk when calling the API:
Since this code is used in a single place and only with a single API key, it will never use any of the alternative branches in the code (since the key is always the same).
How can I go about, increasing the coverage for this code to surpass the 80% threshold required to submit it to the app store?
Thanks for your help in advance.