Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 4c03313

Browse files
committed
Use XCTAssert instead of assert
1 parent bd4a1f8 commit 4c03313

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WordPressKitTests/MediaLibraryTestSupport.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
import XCTest
23
import UniformTypeIdentifiers
34
import OHHTTPStubs
45
import wpxmlrpc
@@ -103,7 +104,7 @@ extension MediaLibraryTestSupport {
103104
return .init(data: Data(), statusCode: 200, headers: nil)
104105
}
105106

106-
assert(delegate.methodName == "wp.getMediaLibrary")
107+
XCTAssertEqual(delegate.methodName, "wp.getMediaLibrary")
107108

108109
let number = delegate.params["number"] as? Int ?? 100
109110
let offset = delegate.params["offset"] as? Int ?? 0

0 commit comments

Comments
 (0)