2021-02-19 17:41:51 +00:00
|
|
|
(ns dda.k8s-mastodon-bot.yaml-test
|
|
|
|
(:require
|
|
|
|
[clojure.test :refer [deftest is testing are]]
|
|
|
|
[dda.k8s-mastodon-bot.yaml :as cut]))
|
|
|
|
|
2021-02-23 08:15:05 +00:00
|
|
|
(deftest should-parse-yaml-string
|
|
|
|
(is (= {:hallo "welt"}
|
2021-02-19 17:41:51 +00:00
|
|
|
(cut/from-string "hallo: welt"))))
|
2021-02-23 08:15:05 +00:00
|
|
|
|
|
|
|
(deftest should-generate-yaml-string
|
|
|
|
(is (= "hallo: welt
|
|
|
|
"
|
|
|
|
(cut/to-string {:hallo "welt"}))))
|