From 3b39ccfe1d7b4c402d031364abbdeb27db4a3351 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Fri, 26 Mar 2021 12:15:03 +0100 Subject: [PATCH] Fix test --- test/babashka/bb_edn_test.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/babashka/bb_edn_test.clj b/test/babashka/bb_edn_test.clj index 5d9ff419..87c901f0 100644 --- a/test/babashka/bb_edn_test.clj +++ b/test/babashka/bb_edn_test.clj @@ -105,7 +105,7 @@ "Usage: bb :cool-task")))) (deftest list-tasks-test - (with-config {:tasks {:cool-task-1 + (with-config {:tasks {:task-1 ^{:description "Return the sum of 1, 2 and 3." :help "Usage: bb :cool-task @@ -122,8 +122,8 @@ Addition is a pretty advanced topic. Let us start with the identity element (let [res (apply test-utils/bb nil (map str [:tasks]))] (is (str/includes? res "The following tasks are available:")) - (is (str/includes? res ":cool-task-1 Return the")) - (is (str/includes? res ":cool-task-2 Return the"))))) + (is (str/includes? res ":task-1 - Return the")) + (is (str/includes? res ":cool-task-2 - Return the"))))) (deftest main-task-test (with-config {:paths ["test-resources/task_scripts"]