aerospace fork
Something went wrong. Try again.
577 B · 13 lines
Swift
at main
1234567891011121314@testable import AppBundleimport Commonimport XCTest
final class ListAppsTest: XCTestCase { func testParse() { assertNotNil(parseCommand("list-apps --macos-native-hidden").cmdOrDie) assertNotNil(parseCommand("list-apps --macos-native-hidden no").cmdOrDie) assertNotNil(parseCommand("list-apps --format %{app-bundle-id}").cmdOrDie) assertNotNil(parseCommand("list-apps --count").cmdOrDie) assertEquals(parseCommand("list-apps --format %{app-bundle-id} --count").errorOrNil, "ERROR: Conflicting options: --count, --format") }}