Skip to content

Commit 09cd1f9

Browse files
committed
Fix tests
1 parent 85c3b1d commit 09cd1f9

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

test/lambdaisland/cli_test.clj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
{:commands ["run" {:command #'identity
1818
:flags ["-x" {:doc "flag x"
1919
:required required}]}]})
20-
(with-out-str (cli/dispatch* (cmdspec-n false) ["run" "-hx"]))
21-
22-
"NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [<args>...]\n\nFLAGS\n -x, flag x (required)\n"
23-
"NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [<args>...]\n\nFLAGS\n -x, flag x (required)\n"
24-
;; =>
2520

2621
(deftest required-flag
2722
(testing "successful exit"
@@ -37,8 +32,8 @@
3732
(is (= expected (with-out-str (cli/dispatch* input args))))
3833
(cmdspec-1 false) ["-h"] "NAME\n cli \n\nSYNOPSIS\n cli [-x] [<args>...]\n\nFLAGS\n -x, flag x \n"
3934
(cmdspec-1 true) ["-hx"] "NAME\n cli \n\nSYNOPSIS\n cli [-x] [<args>...]\n\nFLAGS\n -x, flag x (required)\n"
40-
(cmdspec-n false) ["run" "-h"] "NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [<args>...]\n\nFLAGS\n -x, flag x \n"
41-
(cmdspec-n true) ["run" "-hx"] "NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [<args>...]\n\nFLAGS\n -x, flag x (required)\n"))
35+
(cmdspec-n false) ["run" "-h"] "NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [<args>...]\n\nFLAGS\n -x, flag x \n"
36+
(cmdspec-n true) ["run" "-hx"] "NAME\n cli run — Returns its argument.\n\nSYNOPSIS\n cli run [-x] [<args>...]\n\nFLAGS\n -x, flag x (required)\n"))
4237

4338
(testing "unsuccessful exit"
4439
(are [input args expected]

0 commit comments

Comments
 (0)