Skip to content

Commit

Permalink
test: add link types into the test
Browse files Browse the repository at this point in the history
  • Loading branch information
ldhyen99 committed Nov 25, 2024
1 parent f9d8093 commit a2b1494
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/services/src/__tests__/aggregationEvent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jest.mock('../linkResolver.service', () => ({
verificationLinkType: 'gs1:verificationService',
certificationLinkType: 'gs1:certificationInfo',
epcisLinkType: 'gs1:epcis',
traceability: 'traceability',
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jest.mock('../../linkResolver.service', () => ({
verificationLinkType: 'verificationService',
certificationLinkType: 'certificationInfo',
epcisLinkType: 'epcis',
traceability: 'traceability',
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jest.mock('../../linkResolver.service', () => ({
verificationLinkType: 'verificationService',
certificationLinkType: 'certificationInfo',
epcisLinkType: 'epcis',
traceability: 'traceability',
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jest.mock('../../linkResolver.service', () => ({
verificationLinkType: 'verificationService',
certificationLinkType: 'certificationInfo',
epcisLinkType: 'epcis',
traceability: 'traceability',
},
}));

Expand Down
5 changes: 3 additions & 2 deletions packages/services/src/__tests__/processDPP.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jest.mock('../linkResolver.service', () => ({
verificationLinkType: 'gs1:verificationService',
certificationLinkType: 'gs1:certificationInfo',
epcisLinkType: 'gs1:epcis',
sustainabilityInfo: 'sustainabilityInfo',
},
}));

Expand Down Expand Up @@ -103,13 +104,13 @@ describe('processDPP', () => {
'01',
dataDPP.data.herd.identifier,
dppContext.dlrLinkTitle,
LinkType.certificationLinkType,
LinkType.sustainabilityInfo,
dppContext.dlrVerificationPage,
dlrContext.dlrAPIUrl,
dlrContext.dlrAPIKey,
dlrContext.namespace,
dataDPP.qualifierPath,
LinkType.certificationLinkType,
LinkType.sustainabilityInfo,
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jest.mock('../linkResolver.service', () => ({
verificationLinkType: 'verificationService',
certificationLinkType: 'certificationInfo',
epcisLinkType: 'epcis',
locationInfo: 'locationInfo',
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jest.mock('../linkResolver.service', () => ({
verificationLinkType: 'verificationService',
certificationLinkType: 'certificationInfo',
epcisLinkType: 'epcis',
registryEntry: 'registryEntry',
},
}));

Expand Down
1 change: 1 addition & 0 deletions packages/services/src/__tests__/transactionEvent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jest.mock('../linkResolver.service', () => ({
verificationLinkType: 'gs1:verificationService',
certificationLinkType: 'gs1:certificationInfo',
epcisLinkType: 'gs1:epcis',
traceability: 'traceability',
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jest.mock('../linkResolver.service', () => ({
verificationLinkType: 'gs1:verificationService',
certificationLinkType: 'gs1:certificationInfo',
epcisLinkType: 'gs1:epcis',
traceability: 'traceability',
},
}));

Expand Down

0 comments on commit a2b1494

Please sign in to comment.