(weatherRespBody, aqicnRespBody)
| 48 | } |
| 49 | |
| 50 | function modifyWeatherResp(weatherRespBody, aqicnRespBody) { |
| 51 | let weatherRespJson = JSON.parse(weatherRespBody) |
| 52 | let aqicnRespJson = JSON.parse(aqicnRespBody).data |
| 53 | weatherRespJson.air_quality = constructAirQuailityNode(aqicnRespJson) |
| 54 | return JSON.stringify(weatherRespJson) |
| 55 | } |
| 56 | |
| 57 | function getPrimaryPollutant(pollutant) { |
| 58 | switch (pollutant) { |
no test coverage detected