@@ -105,7 +105,7 @@ final class DocUploadBundleTests: XCTestCase {
105
105
try await withTempDir { tempDir in
106
106
let url = fixtureUrl ( for: " prod-apple-swift-metrics-main-e6a00d36.zip " )
107
107
XCTAssertNoThrow (
108
- try DocUploadBundle . unzip ( bundle: url. path ( ) , outputPath: tempDir)
108
+ try DocUploadBundle . unzip ( bundle: url. path, outputPath: tempDir)
109
109
)
110
110
for pathComponent in [ " metadata.json " ,
111
111
" main/index.html " ,
@@ -119,14 +119,14 @@ final class DocUploadBundleTests: XCTestCase {
119
119
tempDir + " /main " ] . map ( URL . init ( fileURLWithPath: ) )
120
120
let zipped = URL ( fileURLWithPath: tempDir + " /out.zip " )
121
121
try Zipper . zip ( paths: urls, to: zipped)
122
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: zipped. path ( ) ) )
122
+ XCTAssertTrue ( FileManager . default. fileExists ( atPath: zipped. path) )
123
123
// unzip
124
124
let out = URL ( fileURLWithPath: tempDir + " /out " )
125
125
try Zipper . unzip ( from: zipped, to: out)
126
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. path ( ) ) )
127
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " metadata.json " ) . path ( ) ) )
128
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " main/index.html " ) . path ( ) ) )
129
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " main/index/index.json " ) . path ( ) ) )
126
+ XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. path) )
127
+ XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " metadata.json " ) . path) )
128
+ XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " main/index.html " ) . path) )
129
+ XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " main/index/index.json " ) . path) )
130
130
}
131
131
}
132
132
0 commit comments