0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

💄 Fix backend tests.

This commit is contained in:
Andrey Antukh 2020-05-27 09:33:09 +02:00
parent a27828ed79
commit 0536b64ae5
6 changed files with 18 additions and 18 deletions

View file

@ -16,7 +16,7 @@
(t/deftest color-libraries-crud
(let [id (uuid/next)
prof (th/create-profile db/pool 2)
team-id (:default-team prof)]
team-id (:default-team-id prof)]
(t/testing "create library"
(let [data {::sm/type :create-color-library
@ -72,7 +72,7 @@
(t/deftest colors-crud
(let [prof (th/create-profile db/pool 1)
team-id (:default-team prof)
team-id (:default-team-id prof)
coll (th/create-color-library db/pool team-id 1)
color-id (uuid/next)]

View file

@ -16,8 +16,8 @@
(t/deftest files-crud
(let [prof (th/create-profile db/pool 1)
team-id (:default-team prof)
proj-id (:default-project prof)
team-id (:default-team-id prof)
proj-id (:default-project-id prof)
file-id (uuid/next)
page-id (uuid/next)]
@ -122,8 +122,8 @@
(t/deftest file-images-crud
(let [prof (th/create-profile db/pool 1)
team-id (:default-team prof)
proj-id (:default-project prof)
team-id (:default-team-id prof)
proj-id (:default-project-id prof)
file (th/create-file db/pool (:id prof) proj-id 1)]
(t/testing "upload file image"

View file

@ -16,7 +16,7 @@
(t/deftest icon-libraries-crud
(let [id (uuid/next)
prof (th/create-profile db/pool 2)
team-id (:default-team prof)]
team-id (:default-team-id prof)]
(t/testing "create library"
(let [data {::sm/type :create-icon-library
@ -89,7 +89,7 @@
(t/deftest icons-crud
(let [prof (th/create-profile db/pool 1)
team-id (:default-team prof)
team-id (:default-team-id prof)
coll (th/create-icon-library db/pool team-id 1)
icon-id (uuid/next)]

View file

@ -15,7 +15,7 @@
(t/deftest image-libraries-crud
(let [id (uuid/next)
prof (th/create-profile db/pool 2)
team-id (:default-team prof)]
team-id (:default-team-id prof)]
(t/testing "create library"
(let [data {::sm/type :create-image-library
@ -96,7 +96,7 @@
(t/deftest images-crud
(let [prof (th/create-profile db/pool 1)
team-id (:default-team prof)
team-id (:default-team-id prof)
lib (th/create-image-library db/pool team-id 1)
image-id (uuid/next)]

View file

@ -16,8 +16,8 @@
(t/deftest pages-crud
(let [prof (th/create-profile db/pool 1)
team-id (:default-team prof)
proj-id (:default-project prof)
team-id (:default-team-id prof)
proj-id (:default-project-id prof)
file (th/create-file db/pool (:id prof) proj-id 1)
page-id (uuid/next)]
@ -93,8 +93,8 @@
(t/deftest update-page-data
(let [prof (th/create-profile db/pool 1)
team-id (:default-team prof)
proj-id (:default-project prof)
team-id (:default-team-id prof)
proj-id (:default-project-id prof)
file (th/create-file db/pool (:id prof) proj-id 1)
page-id (uuid/next)]
@ -169,8 +169,8 @@
(t/deftest update-page-data-2
(let [prof (th/create-profile db/pool 1)
team-id (:default-team prof)
proj-id (:default-project prof)
team-id (:default-team-id prof)
proj-id (:default-project-id prof)
file (th/create-file db/pool (:id prof) proj-id 1)
page (th/create-page db/pool (:id prof) (:id file) 1)]
(t/testing "lagging changes"

View file

@ -17,8 +17,8 @@
(t/deftest retrieve-bundle
(let [prof (th/create-profile db/pool 1)
prof2 (th/create-profile db/pool 2)
team-id (:default-team prof)
proj-id (:default-project prof)
team-id (:default-team-id prof)
proj-id (:default-project-id prof)
file (th/create-file db/pool (:id prof) proj-id 1)
page (th/create-page db/pool (:id prof) (:id file) 1)