diff --git a/tests/assertions.js b/tests/assertions.js index ec5670c..3cf500f 100644 --- a/tests/assertions.js +++ b/tests/assertions.js @@ -34,8 +34,7 @@ export const testCredential = ({credential}) => { const issuerType = typeof (credential.issuer); issuerType.should.be.oneOf(['string', 'object']); if(issuerType === 'object') { - should.exist(credential.issuer.id) - .and.to.be.an('object'); + credential.issuer.should.have.property('id').that.is.a('string'); } };