From c5376319c5d4b135c45611537ecf4c58f1b38dcd Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 28 Jul 2023 17:45:54 +0200 Subject: [PATCH] add Like-test --- .../activity_pub_poc/activitystreams2.cljc | 1 - .../activity_pub_poc/activitystreams2_test.cljc | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/cljc/org/domaindrivenarchitecture/activity_pub_poc/activitystreams2.cljc b/src/main/cljc/org/domaindrivenarchitecture/activity_pub_poc/activitystreams2.cljc index 872d692..69b1a66 100644 --- a/src/main/cljc/org/domaindrivenarchitecture/activity_pub_poc/activitystreams2.cljc +++ b/src/main/cljc/org/domaindrivenarchitecture/activity_pub_poc/activitystreams2.cljc @@ -67,7 +67,6 @@ any?;::xsd/anyURI ) - ;http://www.w3.org/ns/activitystreams#result (s/def ::result (s/and diff --git a/src/test/cljc/org/domaindrivenarchitecture/activity_pub_poc/activitystreams2_test.cljc b/src/test/cljc/org/domaindrivenarchitecture/activity_pub_poc/activitystreams2_test.cljc index 29fdd13..efbc397 100644 --- a/src/test/cljc/org/domaindrivenarchitecture/activity_pub_poc/activitystreams2_test.cljc +++ b/src/test/cljc/org/domaindrivenarchitecture/activity_pub_poc/activitystreams2_test.cljc @@ -34,3 +34,12 @@ [{:type "Image", :content "This is what he looks like.", :url "http://example.org/cat.jpeg"}]))) + + +(deftest Like-test + (is (s/valid? ::sut/Like + {:summary "Sally liked a note", + :type "Like", + :actor {:type "Person", + :name "Sally"}, + :object "http://example.org/notes/1"})))