jembi / openhim-mediator-mapping

An OpenHIM mediator for mapping incoming content to a different format
https://jembi.github.io/openhim-mediator-mapping/
MIT License
3 stars 6 forks source link

DSC19-96 Ensure all response requests contain the mapped data #149

Closed MattyJ007 closed 3 years ago

MattyJ007 commented 3 years ago

Previously, if there were multiple response requests only the first response would contain data - the others would be empty objects

This was due to a logic error associated with the array responses as in that case the data did need to be cleared between requests

DSC19-96

codecov[bot] commented 3 years ago

Codecov Report

Merging #149 (fbde15b) into master (86728d1) will decrease coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
- Coverage   97.16%   97.15%   -0.01%     
==========================================
  Files          21       21              
  Lines         951      950       -1     
==========================================
- Hits          924      923       -1     
  Misses         27       27              
Impacted Files Coverage Δ
src/middleware/externalRequests.js 98.21% <100.00%> (-0.01%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 86728d1...fbde15b. Read the comment docs.