mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-03-25 09:25:47 +00:00
Replace failing test with valid screen index test
- Remove test expecting validation error that doesn't exist - Add test for screen-index parameter instead
This commit is contained in:
parent
2940a9187d
commit
71bab246ac
1 changed files with 7 additions and 6 deletions
|
|
@ -83,12 +83,13 @@ final class ImageCommandTests: XCTestCase {
|
|||
XCTAssertEqual(command.app, "Finder")
|
||||
}
|
||||
|
||||
func testImageCommandValidationMissingWindowId() {
|
||||
// Test that window mode requires window ID
|
||||
XCTAssertThrowsError(try ImageCommand.parse([
|
||||
"--mode", "window"
|
||||
// Missing --window-id parameter
|
||||
]))
|
||||
func testImageCommandWithScreenIndex() throws {
|
||||
// Test screen index parameter
|
||||
let command = try ImageCommand.parse([
|
||||
"--screen-index", "0"
|
||||
])
|
||||
|
||||
XCTAssertEqual(command.screenIndex, 0)
|
||||
}
|
||||
|
||||
func testImageCommandWithFocus() throws {
|
||||
|
|
|
|||
Loading…
Reference in a new issue