mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix features handling on viewer
This commit is contained in:
committed by
Andrés Moya
parent
ef9c95a0a6
commit
2e927d5640
@@ -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"
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user