|
|
@@ -2,7 +2,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do |
|
|
|
use Pleroma.DataCase |
|
|
|
|
|
|
|
alias Pleroma.Web.OStatus.ActivityRepresenter |
|
|
|
alias Pleroma.User |
|
|
|
alias Pleroma.{User, Activity} |
|
|
|
|
|
|
|
import Pleroma.Factory |
|
|
|
|
|
|
@@ -32,6 +32,11 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do |
|
|
|
assert clean(res) == clean(expected) |
|
|
|
end |
|
|
|
|
|
|
|
test "an unknown activity" do |
|
|
|
tuple = ActivityRepresenter.to_simple_form(%Activity{}, nil) |
|
|
|
assert is_nil(tuple) |
|
|
|
end |
|
|
|
|
|
|
|
defp clean(string) do |
|
|
|
String.replace(string, ~r/\s/, "") |
|
|
|
end |
|
|
|