aerospace fork
Something went wrong. Try again.
620 B · 12 lines
Swift
at main
12345678910111213@testable import AppBundleimport Commonimport XCTest
final class ListMonitorsTest: XCTestCase { func testParseListMonitorsCommand() { testParseSingleCommandSucc("list-monitors", ListMonitorsCmdArgs(rawArgs: [])) testParseSingleCommandSucc("list-monitors --focused", ListMonitorsCmdArgs(rawArgs: []).copy(\.focused, true)) testParseSingleCommandSucc("list-monitors --count", ListMonitorsCmdArgs(rawArgs: []).copy(\.outputOnlyCount, true)) assertEquals(parseCommand("list-monitors --format %{monitor-id} --count").errorOrNil, "ERROR: Conflicting options: --count, --format") }}