Skip to content

Commit

Permalink
Added logs to check data on server
Browse files Browse the repository at this point in the history
  • Loading branch information
sujithvg committed Nov 19, 2024
1 parent 58343dc commit 5d66fd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/routes/__tests__/water-pollution/location-map.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ describe(url, () => {
payload: {
point
}
}
}
const response = await submitPostRequest(options, constants.statusCodes.REDIRECT, {
referer: constants.routes.WATER_POLLUTION_CHECK_YOUR_ANSWERS
})
const checkData = response.request.yar.get(constants.redisKeys.WATER_POLLUTION_LOCATION_MAP)
console.log('Data for checkData', checkData)
expect(response.headers.location).toEqual(constants.routes.WATER_POLLUTION_CHECK_YOUR_ANSWERS)
expect(response.request.yar.get(constants.redisKeys.WATER_POLLUTION_LOCATION_MAP)).toEqual([{
...baseAnswer,
Expand Down

0 comments on commit 5d66fd0

Please sign in to comment.