Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Nov 26, 2024
1 parent d11217f commit 83a0e04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions test/atomicV3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ describe('atomicV3', () => {
callbackUrl: 'http://localhost:8080/callback?id=1234442-123123-123123',
reason: 'reason',
message: 'message',
did_doc: {},
scope: [
{
id: 1,
Expand Down Expand Up @@ -417,7 +416,7 @@ describe('atomicV3', () => {
});

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

query: {
allowedIssuers: ['*'],
context:
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v4.jsonld',
credentialSubject: { birthday: { $exists: true } },
proofType: ProofType.BJJSignature,
type: 'KYCAgeCredential'
type: 'KYCAgeCredential',
}
}
]
Expand Down Expand Up @@ -578,7 +578,7 @@ describe('atomicV3', () => {
});

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

query: {
allowedIssuers: ['*'],
context:
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v4.jsonld',
proofType: ProofType.BJJSignature,
Expand Down
1 change: 0 additions & 1 deletion test/linked-proofs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ describe('Linked proofs verification', () => {
callbackUrl: 'http://localhost:8080/callback?id=1234442-123123-123123',
reason: 'reason',
message: 'message',
did_doc: {},
scope: [
{
id: 1,
Expand Down

0 comments on commit 83a0e04

Please sign in to comment.