From 1353f59e105ef09b4705f8675ce329f0f7e4c104 Mon Sep 17 00:00:00 2001 From: kirahsapong <102400653+kirahsapong@users.noreply.github.com> Date: Mon, 1 Apr 2024 17:25:24 -0700 Subject: [PATCH] bump web5 spec (#49) * bump web5 spec * fix test --- Tests/Web5TestVectors/web5-spec | 2 +- Tests/Web5Tests/Credentials/PresentationExchangeTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 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 {