From 44f1d10462660c47faea3c2215f5ed81180c73b0 Mon Sep 17 00:00:00 2001 From: Clemens Date: Tue, 1 Aug 2023 10:13:03 +0200 Subject: [PATCH] Added Object-test --- .../activity_pub_poc/activitystreams2_test.cljc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 f9ce1fe..4f371f2 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 @@ -73,3 +73,15 @@ :actor {:type "Person", :name "Sally"}, :object "http://example.org/notes/1"}))) + +(deftest Object-test + (is (s/valid? ::sut/Object + {:summary "Sally liked a note", + :type "Like", + :actor {:type "Person", + :name "Sally"}, + :object "http://example.org/notes/1"})) + (is (s/valid? ::sut/Object + {:type "Object", + :id "http://www.test.example/object/1", + :name "A Simple, non-specific object"})))