Skip to content

Commit

Permalink
yeah
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jan 4, 2024
1 parent f011d9c commit 8db69c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/babashka/cli_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,10 @@
:dude {:coerce :boolean}}
:args->opts [:some-option]}])
(testing "subcommand wins from args->opts"
(is (= {:version "2000"}
(is (= {:dispatch ["foo" "bar"], :opts {:version "2000"}, :args ["some-arg"]}
(-> (cli/dispatch
table
["foo" "bar" "--version" "2000"])
:opts)))))))
["foo" "bar" "--version" "2000" "some-arg"]))))))))

(deftest table->tree-test
(testing "internal represenation"
Expand Down

0 comments on commit 8db69c9

Please sign in to comment.