Skip to content

Commit

Permalink
fix: json import file
Browse files Browse the repository at this point in the history
Signed-off-by: Nam Hoang <[email protected]>
  • Loading branch information
namhoang1604 committed Oct 24, 2024
1 parent 3a58133 commit de6ce16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/services/src/__tests__/vckit.service.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { issueVC, issueCredentialStatus } from '../vckit.service';
import { privateAPI } from '../utils/httpService';
import { decodeJwt } from 'jose';
import appConfig from '../../../mock-app/src/constants/app-config.json';
import { decodeEnvelopedVC, verifyVC } from '../vckit.service';
import appConfig from '../../../../app-config.json';

jest.mock('jose', () => ({
decodeJwt: jest.fn(),
Expand Down Expand Up @@ -278,7 +278,8 @@ describe('vckit.service', () => {
});
});
});
jest.mock('../../../mock-app/src/constants/app-config.json', () => ({

jest.mock('../../../../app-config.json', () => ({
defaultVerificationServiceLink: {
href: 'https://example.com/credentials/verify',
apiKey: '123',
Expand Down
1 change: 1 addition & 0 deletions packages/services/src/vckit.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
import { decodeJwt } from 'jose';
import { privateAPI } from './utils/httpService.js';
import { isPlainObject, every, isString } from 'lodash';
import appConfig from '../../../app-config.json';

export const contextDefault = [
'https://www.w3.org/ns/credentials/v2',
Expand Down

0 comments on commit de6ce16

Please sign in to comment.