mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ Make the get-projects return deleted projects
And adapt the frontend code to properly filter deleted projects on appropriate pages
This commit is contained in:
@@ -104,7 +104,8 @@
|
||||
;; (th/print-result! out)
|
||||
(t/is (nil? (:error out)))
|
||||
(let [result (:result out)]
|
||||
(t/is (= 1 (count result)))))))
|
||||
(t/is (= 1 (count (remove :deleted-at result))))
|
||||
(t/is (= 2 (count result)))))))
|
||||
|
||||
(t/deftest permissions-checks-create-project
|
||||
(let [profile1 (th/create-profile* 1)
|
||||
@@ -207,7 +208,8 @@
|
||||
;; (th/print-result! out)
|
||||
(t/is (nil? (:error out)))
|
||||
(let [result (:result out)]
|
||||
(t/is (= 1 (count result)))))
|
||||
(t/is (= 2 (count result)))
|
||||
(t/is (= 1 (count (remove :deleted-at result))))))
|
||||
|
||||
;; run permanent deletion (should be noop)
|
||||
(let [result (th/run-task! :objects-gc {})]
|
||||
|
||||
Reference in New Issue
Block a user