mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-27 15:07:41 +00:00
Apply SwiftFormat to test files
This commit is contained in:
parent
ebbb75ef1b
commit
5c4cdbc7d5
1 changed files with 6 additions and 2 deletions
|
|
@ -217,7 +217,8 @@ final class ModelsTests: XCTestCase {
|
||||||
func testCaptureErrorDescriptions() {
|
func testCaptureErrorDescriptions() {
|
||||||
XCTAssertEqual(CaptureError.noDisplaysAvailable.errorDescription, "No displays available for capture.")
|
XCTAssertEqual(CaptureError.noDisplaysAvailable.errorDescription, "No displays available for capture.")
|
||||||
XCTAssertTrue(
|
XCTAssertTrue(
|
||||||
CaptureError.screenRecordingPermissionDenied.errorDescription!.contains("Screen recording permission is required")
|
CaptureError.screenRecordingPermissionDenied.errorDescription!
|
||||||
|
.contains("Screen recording permission is required")
|
||||||
)
|
)
|
||||||
XCTAssertEqual(CaptureError.invalidDisplayID.errorDescription, "Invalid display ID provided.")
|
XCTAssertEqual(CaptureError.invalidDisplayID.errorDescription, "Invalid display ID provided.")
|
||||||
XCTAssertEqual(CaptureError.captureCreationFailed.errorDescription, "Failed to create the screen capture.")
|
XCTAssertEqual(CaptureError.captureCreationFailed.errorDescription, "Failed to create the screen capture.")
|
||||||
|
|
@ -227,7 +228,10 @@ final class ModelsTests: XCTestCase {
|
||||||
CaptureError.fileWriteError("/tmp/test.png").errorDescription,
|
CaptureError.fileWriteError("/tmp/test.png").errorDescription,
|
||||||
"Failed to write capture file to path: /tmp/test.png."
|
"Failed to write capture file to path: /tmp/test.png."
|
||||||
)
|
)
|
||||||
XCTAssertEqual(CaptureError.appNotFound("Safari").errorDescription, "Application with identifier 'Safari' not found or is not running.")
|
XCTAssertEqual(
|
||||||
|
CaptureError.appNotFound("Safari").errorDescription,
|
||||||
|
"Application with identifier 'Safari' not found or is not running."
|
||||||
|
)
|
||||||
XCTAssertEqual(CaptureError.invalidWindowIndex(5).errorDescription, "Invalid window index: 5.")
|
XCTAssertEqual(CaptureError.invalidWindowIndex(5).errorDescription, "Invalid window index: 5.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue