From f4ead84f91e9110483f42410b3c0fd04f6126281 Mon Sep 17 00:00:00 2001 From: Kirah Sapong Date: Mon, 1 Apr 2024 16:47:28 -0700 Subject: [PATCH 1/2] bump web5 spec --- Tests/Web5TestVectors/web5-spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Web5TestVectors/web5-spec b/Tests/Web5TestVectors/web5-spec index f76f3b6..270966f 160000 --- a/Tests/Web5TestVectors/web5-spec +++ b/Tests/Web5TestVectors/web5-spec @@ -1 +1 @@ -Subproject commit f76f3b6505447a5f5b31b378682c8dc9ac2a549d +Subproject commit 270966f0ffab6c8834ab83aeb61855d212b12723 From 4f6079e07df0316a2c6ebb65865b8030f1b440f4 Mon Sep 17 00:00:00 2001 From: Kirah Sapong Date: Mon, 1 Apr 2024 17:01:20 -0700 Subject: [PATCH 2/2] fix test --- Tests/Web5Tests/Credentials/PresentationExchangeTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Web5Tests/Credentials/PresentationExchangeTests.swift b/Tests/Web5Tests/Credentials/PresentationExchangeTests.swift index abfb97c..bfa3b01 100644 --- a/Tests/Web5Tests/Credentials/PresentationExchangeTests.swift +++ b/Tests/Web5Tests/Credentials/PresentationExchangeTests.swift @@ -171,7 +171,7 @@ class PresentationExchangeTests: XCTestCase { XCTAssertNotNil(submission.id) XCTAssertEqual(submission.definitionID, pd.id) XCTAssertEqual(submission.descriptorMap.count, 2) - XCTAssertEqual(submission.descriptorMap[0].path, "$.verifiableCredential[0]") + XCTAssertTrue(submission.descriptorMap[0].path.starts(with: "$.verifiableCredential")) } func test_throwsOnCreatePresentationFromInvalidCredentials() throws {