I've extracted the main functionality into the `run` function so that this can be tested without triggering the `System/exit` in `-main`.
8 lines
248 B
Clojure
8 lines
248 B
Clojure
(ns core-test
|
|
(:require [core]
|
|
[clojure.test :as t :refer [deftest is]]
|
|
[clojure.string :as str]))
|
|
|
|
(deftest demo-produces-output
|
|
(let [output (with-out-str (core/run {:demo true}))]
|
|
(is (not (str/blank? output)))))
|