File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 :command-error 5 })
1313
1414(defn format-command-errors [command errors ]
15- (map (fn [error ] (string command " " (string/ascii-lower error ) " . " )) errors ))
15+ (map (fn [error ] (string command " " (string/ascii-lower error ))) errors ))
1616
1717(defn print-errors [errors exit-status-code ]
1818 (each error errors (print (string error " ." )))
Original file line number Diff line number Diff line change 3232(deftest " when the directory doesn't exist"
3333 (def arguments {" list-contacts" " test/missing-directory" })
3434 (def result (build-command arguments ))
35- (test (first (result :errors )) " --list-contacts directory does not exist. " ))
35+ (test (first (result :errors )) " --list-contacts directory does not exist" ))
Original file line number Diff line number Diff line change 127127 (def arguments {" schedule-contacts" " test/examples/people" })
128128 (def result (build-command arguments ))
129129 (test (nil? (result :command )) true )
130- (test (first (result :errors )) " --schedule-contacts directory does not exist. " ))
130+ (test (first (result :errors )) " --schedule-contacts directory does not exist" ))
Original file line number Diff line number Diff line change 225225 (def arguments {" schedule-tasks" " test/examples/missing-schedule.md" })
226226 (def result (build-command arguments ))
227227 (test (nil? (result :command )) true )
228- (test (first (result :errors )) " --schedule-tasks file does not exist. " ))
228+ (test (first (result :errors )) " --schedule-tasks file does not exist" ))
229229
230230(deftest " returns an error when the schedule cannot be parsed"
231231 (def arguments {" schedule-tasks" " test/examples/unparsable-schedule.md" })
232232 (def result (build-command arguments ))
233233 (test (nil? (result :command )) true )
234- (test (first (result :errors )) " --schedule-tasks schedule can not be parsed. " ))
234+ (test (first (result :errors )) " --schedule-tasks schedule can not be parsed" ))
235235
236236(deftest " returns an error when the schedule is empty"
237237 (def arguments {" schedule-tasks" " test/examples/empty-schedule.md" })
238238 (def result (build-command arguments ))
239239 (test (nil? (result :command )) true )
240- (test (first (result :errors )) " --schedule-tasks schedule is empty. " ))
240+ (test (first (result :errors )) " --schedule-tasks schedule is empty" ))
You can’t perform that action at this time.
0 commit comments