Skip to content

Commit 014b963

Browse files
committed
Fix a compilation issue in unit tests
1 parent 98df822 commit 014b963

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Tests/KeystoneTests/Tests/Services/UserListViewModelTests.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ class UserListViewModelTests: XCTestCase {
1616
override func setUp() async throws {
1717
try await super.setUp()
1818

19-
let client = try WordPressClient(api: .init(urlSession: .shared, apiRootUrl: .parse(input: "https://example.com/wp-json"), authentication: .none), rootUrl: .parse(input: "https://example.com"))
19+
let client = try WordPressClient(
20+
api: .init(urlSession: .shared, apiRootUrl: .parse(input: "https://example.com/wp-json"), authentication: .none),
21+
siteURL: URL(string: "https://example.com")!
22+
)
2023
service = UserService(client: client)
2124
viewModel = await UserListViewModel(userService: service, currentUserId: 0)
2225
}

WordPress/Classes/ViewRelated/CustomPostTypes/CustomPostEditor.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,3 @@ private enum Strings {
137137
comment: "Error message shown when the post was modified by another user while editing"
138138
)
139139
}
140-

0 commit comments

Comments
 (0)