Closed vickyc2266 closed 5 days ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/middleware/render.js | 5 | 6 | 83.33% | ||
<!-- | Total: | 5 | 6 | 83.33% | --> |
Totals | |
---|---|
Change from base Build 10841145095: | 0.007% |
Covered Lines: | 22325 |
Relevant Lines: | 25583 |
Reduced cognitive complexity of the renderMethod which is within the processRender function of the render.js file by taking away a conditional that appears in the code more than once and putting it into a helper function with an intuitive title called checkHeadersSent(res). The function here is supposed to provide the same exact logic as the original code but just putting it in into a function and calling that function where it is needed.
UI Test Login Successfully as admin Able to Run Server Successfully Able to access different and render different UI pages