Skip to content

Commit

Permalink
yeah
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jan 3, 2024
1 parent e1a638b commit 9ca4c12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/babashka/cli_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@
(d/deflet
(def table [{:cmds ["foo" "bar"] :fn identity :spec {:version {:coerce :string}}}
{:cmds ["foo"] :fn identity :spec {:version {:coerce :boolean}}}])
(is (submap? {:opts {:version true}, :args ["2010"]}
(cli/dispatch
table
["foo" "--version" "2010"])))
(is (= "2010" (-> (cli/dispatch
table
["foo" "bar" "--version" "2010"])
Expand Down

0 comments on commit 9ca4c12

Please sign in to comment.