Added Object-test
This commit is contained in:
parent
87a089f0a0
commit
44f1d10462
1 changed files with 12 additions and 0 deletions
|
@ -73,3 +73,15 @@
|
||||||
:actor {:type "Person",
|
:actor {:type "Person",
|
||||||
:name "Sally"},
|
:name "Sally"},
|
||||||
:object "http://example.org/notes/1"})))
|
: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"})))
|
||||||
|
|
Loading…
Reference in a new issue