Skip to content

Commit

Permalink
Update DarockBili_Watch_App_UI_Tests.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ authored Nov 18, 2023
1 parent 429275f commit 6f38447
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,5 @@ extension XCTestCase {
attachment.name = name
attachment.lifetime = .keepAlways
add(attachment)

let url = downloadsFolder.appendingPathComponent("appshot.png")
try! screenshot.pngRepresentation.write(to: url)
}
}

var downloadsFolder: URL = {
let fm = FileManager.default
let folder = fm.urls(for: .downloadsDirectory, in: .userDomainMask)[0]

var isDirectory: ObjCBool = false
if !(fm.fileExists(atPath: folder.path, isDirectory: &isDirectory) && isDirectory.boolValue) {
try! fm.createDirectory(at: folder, withIntermediateDirectories: false, attributes: nil)
}
return folder
}()

0 comments on commit 6f38447

Please sign in to comment.