Added Object-test

This commit is contained in:
Clemens 2023-08-01 10:13:03 +02:00
parent 87a089f0a0
commit 44f1d10462

View file

@ -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"})))