🐛 Fix features handling on viewer

This commit is contained in:
Andrey Antukh
2023-11-16 14:09:09 +01:00
committed by Andrés Moya
parent ef9c95a0a6
commit 2e927d5640
5 changed files with 24 additions and 12 deletions

View File

@@ -119,7 +119,8 @@
app.config/config config
app.loggers.audit/submit! (constantly nil)
app.auth/derive-password identity
app.auth/verify-password (fn [a b] {:valid (= a b)})]
app.auth/verify-password (fn [a b] {:valid (= a b)})
app.common.features/get-enabled-features (fn [& _] app.common.features/supported-features)]
(let [templates [{:id "test"
:name "test"

View File

@@ -33,7 +33,10 @@
}]
(binding [cond/*enabled* true]
(let [{:keys [error result]} (th/command! params)]
(let [{:keys [error result] :as out} (th/command! params)]
;; NOTE: Fails on print because fipps used for pretty print
;; tries to load pointers
;; (th/print-result! out)
(t/is (nil? error))
(t/is (map? result))
(t/is (contains? (meta result) :app.http/headers))