I have written unit tests for the client/app/utils. The coverage report for the index.js has gone up to 65% with the corresponding tests I have written in index.test.js
More Details
While I was able to cover all the lines for the function randomString, the functions setCsrfToken, getPusher uses DOM implementation which makes it very tricky to mock it in Jest. Thus, they remain uncovered.
Description
I have written unit tests for the
client/app/utils
. The coverage report for theindex.js
has gone up to 65% with the corresponding tests I have written inindex.test.js
More Details
While I was able to cover all the lines for the function
randomString
, the functionssetCsrfToken
,getPusher
uses DOM implementation which makes it very tricky to mock it in Jest. Thus, they remain uncovered.Corresponding Issue
https://github.com/ifmeorg/ifme/issues/2128
Screenshots
Reviewing this pull request? Check out our Code Review Practices guide if you haven't already!