From c50f5ee93717e32c3d986f7b5ef9c0fdd49146dc Mon Sep 17 00:00:00 2001 From: Stas Dmytryshyn Date: Fri, 6 Dec 2024 18:48:43 +0100 Subject: [PATCH] fix: check issuer object (#55) --- tests/assertions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'); } };