From 6008bdaef0d167b94aa8e9da74c940fadee90f36 Mon Sep 17 00:00:00 2001 From: Doris Benda Date: Thu, 12 Sep 2024 13:53:53 +0300 Subject: [PATCH] Fix id proof tests --- packages/sdk/src/id/idProofTypes.ts | 2 +- packages/sdk/test/ci/idProofs.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk/src/id/idProofTypes.ts b/packages/sdk/src/id/idProofTypes.ts index 15797216d..620133008 100644 --- a/packages/sdk/src/id/idProofTypes.ts +++ b/packages/sdk/src/id/idProofTypes.ts @@ -45,4 +45,4 @@ export const attributesWithRange: AttributeKey[] = ['dob', 'idDocIssuedAt', 'idD /** * The attributes that can be used for (non)membership statements */ -export const attributesWithSet: AttributeKey[] = ['countryOfResidence', 'nationality', 'idDocType', 'idDocIssuer']; +export const attributesWithSet: AttributeKey[] = ['countryOfResidence', 'nationality', 'idDocType', 'idDocIssuer', 'legalCountry']; diff --git a/packages/sdk/test/ci/idProofs.test.ts b/packages/sdk/test/ci/idProofs.test.ts index e86fa3f43..165e56c85 100644 --- a/packages/sdk/test/ci/idProofs.test.ts +++ b/packages/sdk/test/ci/idProofs.test.ts @@ -74,7 +74,7 @@ test('Upper bound must be greater than lower bound for attribute statement', () test('Unknown attribute tags are rejected', () => { const builder = new IdStatementBuilder(true); expect(() => builder.addMembership(-1 as unknown as AttributesKeys, ['DK'])).toThrow(); - expect(() => builder.addMembership(15 as unknown as AttributesKeys, ['DK'])).toThrow(); + expect(() => builder.addMembership(16 as unknown as AttributesKeys, ['DK'])).toThrow(); expect(() => builder.addMembership(1000 as unknown as AttributesKeys, ['DK'])).toThrow(); });