finished attachment
This commit is contained in:
parent
e04683d253
commit
72a51b3f2c
2 changed files with 6 additions and 5 deletions
|
@ -47,11 +47,10 @@
|
|||
::Activity))
|
||||
|
||||
;http://www.w3.org/ns/activitystreams#attachment
|
||||
; TODO: Why do we need to model this? Is this necessary for a Like-Activity?
|
||||
(s/def ::attachment
|
||||
(s/and
|
||||
::owl/Class
|
||||
::owl/ObjectProperty
|
||||
::owl/Class
|
||||
::Object
|
||||
::Link))
|
||||
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
(is (not (s/valid? ::sut/result 47))))
|
||||
|
||||
|
||||
;(deftest attachment-test
|
||||
; (is (s/valid? ::sut/attachment))
|
||||
; )
|
||||
(deftest attachment-test
|
||||
(is (s/valid? ::sut/attachment
|
||||
[{:type "Image",
|
||||
:content "This is what he looks like.",
|
||||
:url "http://example.org/cat.jpeg"}])))
|
||||
|
|
Loading…
Reference in a new issue