Skip to content

Commit

Permalink
fix: check issuer object (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
skynet2 authored Dec 6, 2024
1 parent 62878d4 commit c50f5ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
};

Expand Down

0 comments on commit c50f5ee

Please sign in to comment.