Skip to content

Commit

Permalink
Update test descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSAssassin committed Oct 26, 2023
1 parent 265cadc commit cad7ead
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions tests/10-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ describe('ecdsa-2019 (create)', function() {
const cryptosuite = ['ecdsa-rdfc-2019', 'ecdsa-jcs-2019'];
proofs.some(
proof => cryptosuite.includes(proof?.cryptosuite)
).should.equal(
true,
'Expected at least one proof to have "cryptosuite" property ' +
'"ecdsa-rdfc-2019" or "ecdsa-jcs-2019".'
).should.equal(true, 'Expected at least one proof to have ' +
'"cryptosuite" property "ecdsa-rdfc-2019" or "ecdsa-jcs-2019".'
);
});
it('The "proof" MUST verify when using a conformant verifier.',
Expand All @@ -75,14 +73,12 @@ describe('ecdsa-2019 (create)', function() {
async function() {
this.test.cell = {columnId: name, rowId: this.test.title};
verificationMethodDocuments.should.not.eql([], 'Expected ' +
'"verificationMethodDocuments" to not be empty.');
'at least one "verificationMethodDocument".');
verificationMethodDocuments.some(
verificationMethodDocument =>
verificationMethodDocument?.type === 'Multikey'
).should.equal(
true,
'Expected at least one proof to have "type" property value ' +
'"Multikey".'
).should.equal(true, 'Expected at least one proof to have "type" ' +
'property value "Multikey".'
);
});
it('The "publicKeyMultibase" property of the verification method ' +
Expand All @@ -99,11 +95,8 @@ describe('ecdsa-2019 (create)', function() {
shouldBeBs58(publicKeyMultibase) &&
shouldBeMulticodecEncoded(publicKeyMultibase);
}
).should.equal(
true,
'Expected at "publicKeyMultibase" to to be MULTIBASE formatted ' +
'and MULTICODEC encoded.'
);
).should.equal(true, 'Expected at "publicKeyMultibase" to to be ' +
'MULTIBASE formatted and MULTICODEC encoded.');
});
});
}
Expand Down

0 comments on commit cad7ead

Please sign in to comment.