projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/develop' into hide-muted-reactions
[akkoma]
/
test
/
pleroma
/
web
/
activity_pub
/
object_validators
/
attachment_validator_test.exs
diff --git
a/test/pleroma/web/activity_pub/object_validators/attachment_validator_test.exs
b/test/pleroma/web/activity_pub/object_validators/attachment_validator_test.exs
index 558bb3131c048af523c298f47e7529dc48a5a0d4..2e1975a7995504c0c822e9107c893a0f6d8cd1e3 100644
(file)
--- a/
test/pleroma/web/activity_pub/object_validators/attachment_validator_test.exs
+++ b/
test/pleroma/web/activity_pub/object_validators/attachment_validator_test.exs
@@
-33,7
+33,8
@@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.AttachmentValidatorTest do
"http://mastodon.example.org/system/media_attachments/files/000/000/002/original/334ce029e7bfb920.jpg",
"type" => "Document",
"name" => nil,
"http://mastodon.example.org/system/media_attachments/files/000/000/002/original/334ce029e7bfb920.jpg",
"type" => "Document",
"name" => nil,
- "mediaType" => "image/jpeg"
+ "mediaType" => "image/jpeg",
+ "blurhash" => "UD9jJz~VSbR#xT$~%KtQX9R,WAs9RjWBs:of"
}
{:ok, attachment} =
}
{:ok, attachment} =
@@
-50,13
+51,14
@@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.AttachmentValidatorTest do
] = attachment.url
assert attachment.mediaType == "image/jpeg"
] = attachment.url
assert attachment.mediaType == "image/jpeg"
+ assert attachment.blurhash == "UD9jJz~VSbR#xT$~%KtQX9R,WAs9RjWBs:of"
end
test "it handles our own uploads" do
user = insert(:user)
file = %Plug.Upload{
end
test "it handles our own uploads" do
user = insert(:user)
file = %Plug.Upload{
- content_type: "image/jpg",
+ content_type: "image/jp
e
g",
path: Path.absname("test/fixtures/image.jpg"),
filename: "an_image.jpg"
}
path: Path.absname("test/fixtures/image.jpg"),
filename: "an_image.jpg"
}