I have tried to follow some of the suggestions on posts here and following the Chai documentation. I keep getting AssertionError: expected [ Array(5) ] to have error.
This is the latest test:
expect(orgRoles).to.have.property('ViewRoleDto').which.is.an('object').and.has.property('name').which.does.not.include('armadillo.luna.');
So that orgRoles has an array of objects that looks like so:
[
ViewRoleDto {_type: 'ViewRoleDto', name: 'armadillo.organization.admin',description:'Admin'},
{_type: 'ViewRoleDto', name: 'armadillo.organization.doctor',description:'Doctor'},
{_type: 'ViewRoleDto', name: 'armadillo.organization.billing',description:'Billing'}
]
So I am just looking for a test that says that the above data structure does not include name: "armadillo.luna." whatever the end of it may be whether it's .billing or .admin.