Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal committed Mar 14, 2024
1 parent 4e73e21 commit eced7f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/credentials/src/verifiable-credential.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { BearerDid } from '@web5/dids';
import type { ICredential, ICredentialSubject, ICredentialStatus} from '@sphereon/ssi-types';
import type { ICredential, ICredentialSubject} from '@sphereon/ssi-types';

import { utils as cryptoUtils } from '@web5/crypto';

Expand Down
5 changes: 3 additions & 2 deletions packages/credentials/tests/status-list-credential.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ describe('Status List Credential Tests', async() => {

const credWithStatusContexts = credWithCredStatus.vcDataModel['@context'] as string[];

expect(credWithStatusContexts.includes('https://www.w3.org/2018/credentials/v1')).to.be.true;
expect(credWithStatusContexts.includes('https://w3id.org/vc/status-list/2021/v1')).to.be.true;
expect(credWithStatusContexts.some(context => context.includes('https://w3id.org/vc/status-list/2021/v1'))).to.be.true;

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High test

'
https://w3id.org/vc/status-list/2021/v1
' can be anywhere in the URL, and arbitrary hosts may come before or after it.
expect(credWithStatusContexts.some(context => context.includes('https://www.w3.org/2018/credentials/v1'))).to.be.true;

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High test

'
https://www.w3.org/2018/credentials/v1
' can be anywhere in the URL, and arbitrary hosts may come before or after it.

expect(credWithCredStatus.vcDataModel.credentialStatus).to.deep.equal(credentialStatus);

const statusListCred = StatusListCredential.create({
Expand Down

0 comments on commit eced7f6

Please sign in to comment.