From 09cd1f9bc22ba54737a7f189c0d058175c38adae Mon Sep 17 00:00:00 2001 From: Arne Brasseur Date: Fri, 7 Jun 2024 09:58:55 +0200 Subject: [PATCH] Fix tests --- test/lambdaisland/cli_test.clj | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/lambdaisland/cli_test.clj b/test/lambdaisland/cli_test.clj index fd9f490..a2d4aec 100644 --- a/test/lambdaisland/cli_test.clj +++ b/test/lambdaisland/cli_test.clj @@ -17,11 +17,6 @@ {:commands ["run" {:command #'identity :flags ["-x" {:doc "flag x" :required required}]}]}) -(with-out-str (cli/dispatch* (cmdspec-n false) ["run" "-hx"])) - -"NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [...]\n\nFLAGS\n -x, flag x (required)\n" -"NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [...]\n\nFLAGS\n -x, flag x (required)\n" -;; => (deftest required-flag (testing "successful exit" @@ -37,8 +32,8 @@ (is (= expected (with-out-str (cli/dispatch* input args)))) (cmdspec-1 false) ["-h"] "NAME\n cli \n\nSYNOPSIS\n cli [-x] [...]\n\nFLAGS\n -x, flag x \n" (cmdspec-1 true) ["-hx"] "NAME\n cli \n\nSYNOPSIS\n cli [-x] [...]\n\nFLAGS\n -x, flag x (required)\n" - (cmdspec-n false) ["run" "-h"] "NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [...]\n\nFLAGS\n -x, flag x \n" - (cmdspec-n true) ["run" "-hx"] "NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [...]\n\nFLAGS\n -x, flag x (required)\n")) + (cmdspec-n false) ["run" "-h"] "NAME\n cli run —— Returns its argument.\n\nSYNOPSIS\n cli run [-x] [...]\n\nFLAGS\n -x, flag x \n" + (cmdspec-n true) ["run" "-hx"] "NAME\n cli run —— Returns its argument.\n\nSYNOPSIS\n cli run [-x] [...]\n\nFLAGS\n -x, flag x (required)\n")) (testing "unsuccessful exit" (are [input args expected]