I (cringingly) wrote something like this in an API test the other day:
function expectedResponse() {
return body.ResponseInformation.ResponseInformationCore.ResponseSellerAvails.ResponseSellerAvail[0].SellerAvail.AvailCore.Totals.Total[0].Charges.Charge[0].calculation[0].amount
}
I figured someone would appreciate the ugliness as much as I do. Any suggestions on making it more pretty?
submitted by /u/jfacoustic
[link] [comments]
from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/2SNI5zB