payroll-import/test/core_test.clj
Ben Sturmfels a49880cc94
Fix demo mode and add a test to run demo
I've extracted the main functionality into the `run` function so that this can
be tested without triggering the `System/exit` in `-main`.
2025-09-20 00:19:32 +10:00

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)))))