Skip to content

Commit

Permalink
Remove periods for end of test titles.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Sep 26, 2024
1 parent bc8f625 commit 1bb1f6b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/10-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ describe('did:key Create Operation', function() {
shouldBeDidResolverResponse(data);
shouldHaveDidResolutionError(data, 'methodNotSupported');
});
it('The version MUST be convertible to a positive integer value.',
it('The version MUST be convertible to a positive integer value',
async function() {
this.test.cell = {columnId, rowId: this.test.title};
const {version} = splitDid({did});
should.exist(version, `Expected ${did} to have a version.`);
shouldHaveValidVersion(version);
});
it('MUST raise `invalidDid` if version is not convertible to a ' +
'positive integer value.', async function() {
'positive integer value', async function() {
this.test.cell = {columnId, rowId: this.test.title};
const didParts = splitDid({did});
const invalidVersionDid = `${didParts.scheme}:${didParts.method}:` +
Expand All @@ -126,7 +126,7 @@ describe('did:key Create Operation', function() {
);
});
it('MUST raise `invalidDid` if the multibaseValue does not begin with ' +
'the letter `z`.', async function() {
'the letter `z`', async function() {
this.test.cell = {columnId, rowId: this.test.title};
const didParts = splitDid({did});
const invalidMultibaseDid = `${didParts.scheme}:${didParts.method}:` +
Expand Down Expand Up @@ -163,7 +163,7 @@ describe('did:key Create Operation', function() {
});
it('If the byte length of rawPublicKeyBytes does not match the ' +
'expected public key length for the associated multicodecValue, ' +
'an `invalidPublicKeyLength` error MUST be raised.', async function() {
'an `invalidPublicKeyLength` error MUST be raised', async function() {
this.test.cell = {columnId, rowId: this.test.title};
const {result, error, data} = await didResolver.get({
url: makeUrl(invalidKeyLengthDid),
Expand All @@ -187,7 +187,7 @@ describe('did:key Create Operation', function() {
this.test.cell = {columnId, rowId: this.test.title};
});
it('If verificationMethod.id is not a valid DID URL, an ' +
'`invalidDidUrl` error MUST be raised.', async function() {
'`invalidDidUrl` error MUST be raised', async function() {
this.test.cell = {columnId, rowId: this.test.title};
const {multibase} = splitDid({did});
const invalidDidUrl = `${did}/^bar^/?query=\`#${multibase}`;
Expand All @@ -200,7 +200,7 @@ describe('did:key Create Operation', function() {
shouldHaveDidDereferencingError(data, 'invalidDidUrl');
});
it('If publicKeyFormat is not known to the implementation, an ' +
'`unsupportedPublicKeyType` error MUST be raised.', async function() {
'`unsupportedPublicKeyType` error MUST be raised', async function() {
this.test.cell = {columnId, rowId: this.test.title};
const {result, error, data} = await didResolver.get({
url: makeUrl(did),
Expand All @@ -216,7 +216,7 @@ describe('did:key Create Operation', function() {
'options.enableExperimentalPublicKeyTypes is set to false and ' +
'publicKeyFormat is not Multikey, JsonWebKey2020, or ' +
'Ed25519VerificationKey2020, an `invalidPublicKeyType` error ' +
'MUST be raised.', async function() {
'MUST be raised', async function() {
this.test.cell = {columnId, rowId: this.test.title};
const {result, error, data} = await didResolver.get({
url: makeUrl(assertionVmId),
Expand All @@ -233,7 +233,7 @@ describe('did:key Create Operation', function() {
'options.enableExperimentalPublicKeyTypes is set to false and ' +
'publicKeyFormat is not Multikey, JsonWebKey2020, or ' +
'X25519KeyAgreementKey2020, an `invalidPublicKeyType` error ' +
'MUST be raised.', async function() {
'MUST be raised', async function() {
this.test.cell = {columnId, rowId: this.test.title};
const {result, error, data} = await didResolver.get({
url: makeUrl(keyAgreementVmId),
Expand All @@ -247,7 +247,7 @@ describe('did:key Create Operation', function() {
shouldHaveDidDereferencingError(data, 'invalidPublicKeyType');
});
it('If verificationMethod.controller is not a valid DID, an ' +
'`invalidDid` error MUST be raised.', async function() {
'`invalidDid` error MUST be raised', async function() {
this.test.cell = {columnId, rowId: this.test.title};
const {multibase} = splitDid({did});
const didUrl = `${did}#${multibase}`;
Expand Down

0 comments on commit 1bb1f6b

Please sign in to comment.