Skip to content

Commit

Permalink
fix length typo
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick <[email protected]>
  • Loading branch information
PatStLouis committed Aug 12, 2024
1 parent 6550701 commit 2e2f99e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/10-issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('Issuers - BitstringStatusList',
'Expected credentialStatus.id to be a string.'
);
} else {
if(statusEntry === statusEntries[statusEntries.lenght - 1]) {
if(statusEntry === statusEntries[statusEntries.length - 1]) {
this.test.cell.skipMessage = 'No id property included.';
this.skip();
} else {
Expand Down Expand Up @@ -182,7 +182,7 @@ describe('Issuers - BitstringStatusList',
statusEntry.statusSize.should.be.gt(0,
'Expected statusSize to be greater than zero.');
} else {
if(statusEntry === statusEntries[statusEntries.lenght - 1]) {
if(statusEntry === statusEntries[statusEntries.length - 1]) {
this.test.cell.skipMessage = 'No statusSize property ' +
'included.';
this.skip();
Expand All @@ -204,7 +204,7 @@ describe('Issuers - BitstringStatusList',
statusEntry.should.have.own.property(
'statusMessage');
} else {
if(statusEntry === statusEntries[statusEntries.lenght - 1]) {
if(statusEntry === statusEntries[statusEntries.length - 1]) {
this.test.cell.skipMessage = 'No statusSize property ' +
'included.';
this.skip();
Expand All @@ -225,7 +225,7 @@ describe('Issuers - BitstringStatusList',
an('array').length.should.be.
equal(statusEntry.statusSize);
} else {
if(statusEntry === statusEntries[statusEntries.lenght - 1]) {
if(statusEntry === statusEntries[statusEntries.length - 1]) {
this.test.cell.skipMessage = 'No statusMessage property ' +
'included.';
this.skip();
Expand All @@ -246,10 +246,10 @@ describe('Issuers - BitstringStatusList',
statusEntry.statusMessage.should.be.
an('array').length.should.be.
equal(statusEntry.statusSize,
'Expected statusMessage lenght to be equal to ' +
'Expected statusMessage length to be equal to ' +
'statusSize.');
} else {
if(statusEntry === statusEntries[statusEntries.lenght - 1]) {
if(statusEntry === statusEntries[statusEntries.length - 1]) {
this.test.cell.skipMessage = 'No statusMessage property ' +
'included.';
this.skip();
Expand All @@ -271,7 +271,7 @@ describe('Issuers - BitstringStatusList',
statusEntry.should.have.own.property(
'statusMessage');
} else {
if(statusEntry === statusEntries[statusEntries.lenght - 1]) {
if(statusEntry === statusEntries[statusEntries.length - 1]) {
this.test.cell.skipMessage = 'No greater than 1 ' +
'statusSize property included.';
this.skip();
Expand All @@ -298,7 +298,7 @@ describe('Issuers - BitstringStatusList',
statusMessage.should.each.have.property(
'message').that.is.a('string');
} else {
if(statusEntry === statusEntries[statusEntries.lenght - 1]) {
if(statusEntry === statusEntries[statusEntries.length - 1]) {
this.test.cell.skipMessage = 'No statusMessage ' +
'property included.';
this.skip();
Expand Down Expand Up @@ -327,7 +327,7 @@ describe('Issuers - BitstringStatusList',
}
// TODO test for URLS
} else {
if(statusEntry === statusEntries[statusEntries.lenght - 1]) {
if(statusEntry === statusEntries[statusEntries.length - 1]) {
this.test.cell.skipMessage = 'No statusReference ' +
'property included.';
this.skip();
Expand Down

0 comments on commit 2e2f99e

Please sign in to comment.