diff --git a/test/babashka/main_test.clj b/test/babashka/main_test.clj index d48dea65..061baf7c 100644 --- a/test/babashka/main_test.clj +++ b/test/babashka/main_test.clj @@ -1,6 +1,7 @@ (ns babashka.main-test {:clj-kondo/config '{:linters {:unresolved-symbol {:exclude [working?]}}}} (:require + [babashka.cli :as cli] [babashka.main :as main] [babashka.test-utils :as test-utils] [clojure.edn :as edn] @@ -30,17 +31,17 @@ (deftest parse-opts-test (is (= {:nrepl "1667"} - (main/parse-opts ["--nrepl-server"]))) + (cli/parse-opts ["--nrepl-server"]))) (is (= {:socket-repl "1666"} - (main/parse-opts ["--socket-repl"]))) + (cli/parse-opts ["--socket-repl"]))) (is (= {:nrepl "1667", :classpath "src"} - (main/parse-opts ["--nrepl-server" "-cp" "src"]))) + (cli/parse-opts ["--nrepl-server" "-cp" "src"]))) (is (= {:socket-repl "1666", :expressions ["123"]} - (main/parse-opts ["--socket-repl" "-e" "123"]))) + (cli/parse-opts ["--socket-repl" "-e" "123"]))) (is (= {:socket-repl "1666", :expressions ["123"]} - (main/parse-opts ["--socket-repl" "1666" "-e" "123"]))) + (cli/parse-opts ["--socket-repl" "1666" "-e" "123"]))) (is (= {:nrepl "1666", :expressions ["123"]} - (main/parse-opts ["--nrepl-server" "1666" "-e" "123"]))) + (cli/parse-opts ["--nrepl-server" "1666" "-e" "123"]))) (is (= 123 (bb nil "(println 123)"))) (is (= 123 (bb nil "-e" "(println 123)"))) (is (= 123 (bb nil "--eval" "(println 123)")))