Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove periods for end of test titles. #30

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading