Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal committed Feb 22, 2024
1 parent f247f40 commit 08a74dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/credentials/tests/ssi-validator.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai';

import { SsiValidator } from '../src/validators.js';
import { DEFAULT_CONTEXT, DEFAULT_VC_TYPE } from '../src/verifiable-credential.js';
import { DEFAULT_VC_CONTEXT, DEFAULT_VC_TYPE } from '../src/verifiable-credential.js';

describe('SsiValidator', () => {

Expand All @@ -11,7 +11,7 @@ describe('SsiValidator', () => {
});

it('should not throw an error if the default context is present', () => {
expect(() => SsiValidator.validateContext([DEFAULT_CONTEXT, 'http://example.com'])).not.throw();
expect(() => SsiValidator.validateContext([DEFAULT_VC_CONTEXT, 'http://example.com'])).not.throw();
});
});

Expand Down

0 comments on commit 08a74dd

Please sign in to comment.