Skip to content

Commit

Permalink
Add test for list-modes command
Browse files Browse the repository at this point in the history
  • Loading branch information
bendiksolheim committed Jan 19, 2025
1 parent b1bbd0c commit 5164312
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/AppBundleTests/command/ListModesTest.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@testable import AppBundle
import Common
import XCTest

final class ListModesTest: XCTestCase {
override func setUpWithError() throws { setUpWorkspacesForTests() }

func testParseListModesCommand() {
testParseCommandSucc("list-modes", ListModesCmdArgs(rawArgs: []))
testParseCommandSucc("list-modes --current", ListModesCmdArgs(rawArgs: []).copy(\.current, true))
}
}

0 comments on commit 5164312

Please sign in to comment.