If have this error in unit testing wherein it cant detect the id:
claim.claimReference[claim.claimId[claim.claimants[0].id]]
Currently, I am trying to put a dummy value for this
claim: {
claimReference: [{
claim: {
claimId: [
{
claim: {
claimants: [{
id: "CM-0000003",
}],
},
},
],
},
}],
},
What is my mistake in here? Thank you for your correction.
EDIT: OHH WAIT. I THINK MY QUESTION WAS MISUNDERSTOOD. SORRY. PLEASE SEE THE IMAGE ATTACHED.
WHAT I AM TRYING TO DO IS TO HAVE A DUMMY VALUE SO THAT I COULD SATISFY THE claim.claimReference[claim.claimId[claim.claimants[0].id]]
maybe
claim.claimReference[0].claim.claimId[0].claim.claimants[0].id