Skip to content

Commit

Permalink
fix unit
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Sep 27, 2024
1 parent 6e69117 commit 17a7192
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions tests/handlers/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ describe('auth', () => {

const proofRequest: ZeroKnowledgeProofRequest = {
id: 23,
circuitId: 'credentialAtomicQueryMTPV2',
circuitId: CircuitId.AtomicQueryMTPV2,
query: {
allowedIssuers: ['*'],
context:
Expand Down Expand Up @@ -997,7 +997,7 @@ describe('auth', () => {

const proofRequest: ZeroKnowledgeProofRequest = {
id: 84239,
circuitId: 'credentialAtomicQuerySigV2',
circuitId: CircuitId.AtomicQuerySigV2,
query: {
allowedIssuers: ['*'],
context:
Expand Down Expand Up @@ -1318,7 +1318,7 @@ describe('auth', () => {
context:
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld',
credentialSubject: { documentType: { $eq: 99 } },
proofType: 'Iden3SparseMerkleTreeProof',
proofType: ProofType.Iden3SparseMerkleTreeProof,
type: 'KYCAgeCredential'
}
}
Expand Down Expand Up @@ -1779,7 +1779,7 @@ describe('auth', () => {

const proofRequest: ZeroKnowledgeProofRequest = {
id: 1,
circuitId: 'credentialAtomicQuerySigV2',
circuitId: CircuitId.AtomicQuerySigV2,
query: {
allowedIssuers: ['*'],
context:
Expand Down
10 changes: 5 additions & 5 deletions tests/proofs/sig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ describe('sig proofs', () => {
scope: [
{
id: 1,
circuitId: 'credentialAtomicQuerySigV2',
circuitId: CircuitId.AtomicQuerySigV2,
query: {
allowedIssuers: ['*'],
context: 'ipfs://QmZ1zsLspwnjifxsncqDkB7EHb2pnaRnBPc5kqQcVxW5rV',
Expand Down Expand Up @@ -477,7 +477,7 @@ describe('sig proofs', () => {
expect(credsForMyUserDID.length).to.equal(1);
const vpReq = {
id: 1,
circuitId: 'credentialAtomicQuerySigV2',
circuitId: CircuitId.AtomicQuerySigV2,
query
};
const { proof, vp } = await proofService.generateProof(vpReq, userDID);
Expand All @@ -500,7 +500,7 @@ describe('sig proofs', () => {
});
const deliveryVPReq = {
id: 1,
circuitId: 'credentialAtomicQuerySigV2',
circuitId: CircuitId.AtomicQuerySigV2,
query: {
...deliveryCredQuery,
credentialSubject: { 'postalProviderInformation.insured': {} }
Expand Down Expand Up @@ -540,7 +540,7 @@ describe('sig proofs', () => {
reason: 'test flow',
scope: [
{
circuitId: 'credentialAtomicQueryV3-beta.1',
circuitId: CircuitId.AtomicQueryV3,
id: 1711115116,
query: {
allowedIssuers: ['*'],
Expand Down Expand Up @@ -612,7 +612,7 @@ describe('sig proofs', () => {
reason: 'test flow',
scope: [
{
circuitId: 'credentialAtomicQueryV3-beta.1',
circuitId: CircuitId.AtomicQueryV3,
id: 1711115116,
query: {
allowedIssuers: ['*'],
Expand Down

0 comments on commit 17a7192

Please sign in to comment.