Skip to content

Commit 83a0e04

Browse files
fix unit tests
1 parent d11217f commit 83a0e04

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/atomicV3.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ describe('atomicV3', () => {
358358
callbackUrl: 'http://localhost:8080/callback?id=1234442-123123-123123',
359359
reason: 'reason',
360360
message: 'message',
361-
did_doc: {},
362361
scope: [
363362
{
364363
id: 1,
@@ -417,7 +416,7 @@ describe('atomicV3', () => {
417416
});
418417

419418
it('TestVerifyV3MessageWithMtpProof_Merklized_exists', async () => {
420-
const request = {
419+
const request: AuthorizationRequestMessage = {
421420
id: '7e5b5847-b479-4499-90ee-5fe4826a5bdd',
422421
typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage,
423422
type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_REQUEST_MESSAGE_TYPE,
@@ -431,11 +430,12 @@ describe('atomicV3', () => {
431430
circuitId: CircuitId.AtomicQueryV3,
432431

433432
query: {
433+
allowedIssuers: ['*'],
434434
context:
435435
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v4.jsonld',
436436
credentialSubject: { birthday: { $exists: true } },
437437
proofType: ProofType.BJJSignature,
438-
type: 'KYCAgeCredential'
438+
type: 'KYCAgeCredential',
439439
}
440440
}
441441
]
@@ -578,7 +578,7 @@ describe('atomicV3', () => {
578578
});
579579

580580
it('TestVerifyV3MessageWithMtpProof_Merklized_noop', async () => {
581-
const request = {
581+
const request: AuthorizationRequestMessage = {
582582
id: '7e5b5847-b479-4499-90ee-5fe4826a5bdd',
583583
typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage,
584584
type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_REQUEST_MESSAGE_TYPE,
@@ -592,6 +592,7 @@ describe('atomicV3', () => {
592592
circuitId: CircuitId.AtomicQueryV3,
593593

594594
query: {
595+
allowedIssuers: ['*'],
595596
context:
596597
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v4.jsonld',
597598
proofType: ProofType.BJJSignature,

test/linked-proofs.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ describe('Linked proofs verification', () => {
1515
callbackUrl: 'http://localhost:8080/callback?id=1234442-123123-123123',
1616
reason: 'reason',
1717
message: 'message',
18-
did_doc: {},
1918
scope: [
2019
{
2120
id: 1,

0 commit comments

Comments
 (0)