From ab101226cfe2bec54f70fb6d2bdfbf1d04f63907 Mon Sep 17 00:00:00 2001 From: Jeremy Massel <1123407+jkmassel@users.noreply.github.com> Date: Wed, 29 May 2024 09:28:54 -0600 Subject: [PATCH] Fix tests --- native/swift/Tests/wordpress-api/WordPressAPITests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/swift/Tests/wordpress-api/WordPressAPITests.swift b/native/swift/Tests/wordpress-api/WordPressAPITests.swift index d60841abb..4b45641bd 100644 --- a/native/swift/Tests/wordpress-api/WordPressAPITests.swift +++ b/native/swift/Tests/wordpress-api/WordPressAPITests.swift @@ -10,6 +10,6 @@ final class WordPressAPITests: XCTestCase { func testExample() throws { let request = try WpRequestBuilder(siteUrl: "https://wordpress.org", authentication: .none) .users().list(context: .view, params: nil) - XCTAssertTrue(XCTUnwrap(request).url.hasPrefix("https://wordpress.org/wp-json/wp/v2/users")) + XCTAssertTrue(try XCTUnwrap(request).url.hasPrefix("https://wordpress.org/wp-json/wp/v2/users")) } }