diff --git a/src/main/cljc/org/domaindrivenarchitecture/fed_poc/forgefed.cljc b/src/main/cljc/org/domaindrivenarchitecture/fed_poc/forgefed.cljc index 57e5b42..2ad10a2 100644 --- a/src/main/cljc/org/domaindrivenarchitecture/fed_poc/forgefed.cljc +++ b/src/main/cljc/org/domaindrivenarchitecture/fed_poc/forgefed.cljc @@ -1,4 +1,4 @@ -(ns org.domaindrivenarchitecture.fed-poc.forge +(ns org.domaindrivenarchitecture.fed-poc.forgefed (:require [clojure.spec.alpha :as s] [orchestra.core :refer [defn-spec]] [org.domaindrivenarchitecture.fed-poc.spec-helper :as sh] diff --git a/src/test/cljc/org/domaindrivenarchitecture/fed_poc/activitystreams2_test.cljc b/src/test/cljc/org/domaindrivenarchitecture/fed_poc/activitystreams2_test.cljc index 071f237..535c542 100644 --- a/src/test/cljc/org/domaindrivenarchitecture/fed_poc/activitystreams2_test.cljc +++ b/src/test/cljc/org/domaindrivenarchitecture/fed_poc/activitystreams2_test.cljc @@ -79,17 +79,24 @@ ::sut/name "A Note"}}))) (deftest Like-test - (is (s/valid? ::sut/Like - {::sut/summary "Sally liked a note", - ::sut/type "Like", - ::sut/actor {::sut/type "Person", - ::sut/name "Sally"}, - ::sut/object "http://example.org/notes/1"})) - (is (s/valid? ::sut/Like - {::sut/id "foo", - ::sut/type "Like", - ::sut/actor "https://social.bla/alyssa", - ::sut/object "http://example.org/notes/1"}))) + (testing "likes for mastodon notes" + (is (s/valid? ::sut/Like + {::sut/summary "Sally liked a note", + ::sut/type "Like", + ::sut/actor {::sut/type "Person", + ::sut/name "Sally"}, + ::sut/object "http://example.org/notes/1"})) + (is (s/valid? ::sut/Like + {::sut/id "foo", + ::sut/type "Like", + ::sut/actor "https://social.bla/alyssa", + ::sut/object "http://example.org/notes/1"}))) + (testing "likes for forgejo repositories" + (is (s/valid? ::sut/Like + {::sut/type "Like", + ::sut/actor "https://repo.prod.meissa.de/jem", + ::sut/object "https://codeberg.org/forgejo/forgejo.git"}))) + ) (deftest Object-test (is (s/valid? ::sut/Object diff --git a/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc b/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc index dba2983..cd33ce6 100644 --- a/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc +++ b/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc @@ -1,10 +1,10 @@ -(ns org.domaindrivenarchitecture.fed-poc.forge-test +(ns org.domaindrivenarchitecture.fed-poc.forgefed-test (:require [clojure.test :refer [deftest is are testing run-tests]] [clojure.spec.alpha :as s] [org.domaindrivenarchitecture.fed-poc.security :as sec] [org.domaindrivenarchitecture.fed-poc.activitystreams2 :as as] - [org.domaindrivenarchitecture.fed-poc.forge :as sut])) + [org.domaindrivenarchitecture.fed-poc.forgefed :as sut])) (deftest Repository-test (is (s/valid? ::sut/Repository