The Situation I am running into is that I am doing a basic test and it appears the response.json() is truncating trailing zeros. As this is a money field, I would like to validate the response is sending those zero. Here is my example:
Original Response:
.
.
"amount": 100.00,
.
.
After running the conversion:
const responseJson = pm.response.json();
the line reads:
.
.
"amount":100,
.
.
I am no longer able to test if this originally had the two decimal places.
For what it is worth, I started down the path of converting to string, but it is already truncated by the time it get to the pm.expect statement so I am not able to regex it.
Any solutions other than trying to get originator of the api to return a string instead of a number (I don't like that for many reasons).