mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-27 15:07:41 +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")
|
XCTAssertEqual(command.app, "Finder")
|
||||||
}
|
}
|
||||||
|
|
||||||
func testImageCommandValidationMissingWindowId() {
|
func testImageCommandWithScreenIndex() throws {
|
||||||
// Test that window mode requires window ID
|
// Test screen index parameter
|
||||||
XCTAssertThrowsError(try ImageCommand.parse([
|
let command = try ImageCommand.parse([
|
||||||
"--mode", "window"
|
"--screen-index", "0"
|
||||||
// Missing --window-id parameter
|
])
|
||||||
]))
|
|
||||||
|
XCTAssertEqual(command.screenIndex, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func testImageCommandWithFocus() throws {
|
func testImageCommandWithFocus() throws {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue