mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 23:06:43 +02:00
🎉 Add features assignation for teams
This commit is contained in:
parent
7db8d7b7ab
commit
6f93b41920
84 changed files with 2390 additions and 1777 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
(ns backend-tests.rpc-cond-middleware-test
|
||||
(:require
|
||||
[app.common.features :as cfeat]
|
||||
[app.common.uuid :as uuid]
|
||||
[app.db :as db]
|
||||
[app.http :as http]
|
||||
|
@ -27,7 +28,9 @@
|
|||
:project-id (:id project)})
|
||||
params {::th/type :get-file
|
||||
:id (:id file1)
|
||||
::rpc/profile-id (:id profile)}]
|
||||
::rpc/profile-id (:id profile)
|
||||
:features cfeat/supported-features
|
||||
}]
|
||||
|
||||
(binding [cond/*enabled* true]
|
||||
(let [{:keys [error result]} (th/command! params)]
|
||||
|
@ -36,7 +39,7 @@
|
|||
(t/is (contains? (meta result) :app.http/headers))
|
||||
(t/is (contains? (meta result) :app.rpc.cond/key))
|
||||
|
||||
(let [etag (-> result meta :app.http/headers (get "etag"))
|
||||
(let [etag (-> result meta :app.http/headers (get "etag"))
|
||||
{:keys [error result]} (th/command! (assoc params ::cond/key etag))]
|
||||
(t/is (nil? error))
|
||||
(t/is (fn? result))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue