|
|
|
@ -18,4 +18,24 @@
|
|
|
|
|
::sut/followers "https://dev.example/aviva/treesim/followers",
|
|
|
|
|
::sut/team "https://dev.example/aviva/treesim/team",
|
|
|
|
|
::sut/name "Tree Growth 3D Simulation",
|
|
|
|
|
::sut/summary "<p>Tree growth 3D simulator for my nature exploration game</p>"})))
|
|
|
|
|
::sut/summary "<p>Tree growth 3D simulator for my nature exploration game</p>"})))
|
|
|
|
|
|
|
|
|
|
(deftest Star-test
|
|
|
|
|
(testing "stars for forgejo repositories"
|
|
|
|
|
(testing "using activitypub api uris for id refernce"
|
|
|
|
|
(is (s/valid? ::sut/Star
|
|
|
|
|
{::as/id "https://repo.prod.meissa.de/api/activitypub/user-id/1/outbox/12345",
|
|
|
|
|
::as/type "Star",
|
|
|
|
|
::sut/flavour "forgejo",
|
|
|
|
|
::as/actor "https://repo.prod.meissa.de/api/activitypub/user-id/1",
|
|
|
|
|
::as/object "https://codeberg.org/api/repos/forgejo/forgejo"})))))
|
|
|
|
|
|
|
|
|
|
(deftest Unstar-test
|
|
|
|
|
(testing "stars for forgejo repositories"
|
|
|
|
|
(testing "using activitypub api uris for id refernce"
|
|
|
|
|
(is (s/valid? ::sut/Unstar
|
|
|
|
|
{::as/id "https://repo.prod.meissa.de/api/activitypub/user-id/1/outbox/12345",
|
|
|
|
|
::as/type "Unstar",
|
|
|
|
|
::sut/flavour "forgejo",
|
|
|
|
|
::as/actor "https://repo.prod.meissa.de/api/activitypub/user-id/1",
|
|
|
|
|
::as/object "https://codeberg.org/api/repos/forgejo/forgejo"})))))
|