pm.expect([1,2,3,4,5]).to.deep.equal([1,2,3,4,5])
or
pm.expect(_.isEqual([1,2,3,4,5],[1,2,3,4,5])).to.be.true
so in your case:
pm.expect([
{
"kind": {
"code": "COMPANY",
"name": "Company name"
},
"value": "KKO",
"confidence": 0.0
},
{
"kind": {
"code": "AGREEMENT",
"name": "Agreement number"
},
"value": "123",
"confidence": 0.0
},
{
"kind": {
"code": "DATE_OF_ISSUE",
"name": "When it was created"
},
"value": "01/01/2019",
"confidence": 0.0
}]).to.deep.equal([
{
"kind": {
"code": "COMPANY",
"name": "Company name"
},
"value": "KKO",
"confidence": 0.0
},
{
"kind": {
"code": "AGREEMENT",
"name": "Agreement number"
},
"value": "123",
"confidence": 0.0
},
{
"kind": {
"code": "DATE_OF_ISSUE",
"name": "When it was created"
},
"value": "01/01/2019",
"confidence": 0.0
}])
Update
name = ["Company name", "Agreement number", "When it was created"]
value = ["KKO", "123", "01/01/2019"]
pm.test("something", function () {
a.forEach((a, i) => {
pm.expect(a.kind.name).to.be.equal(name[i])
pm.expect(a.value).to.be.equal(value[i])
})
})