fix format
This commit is contained in:
parent
58da7f6620
commit
1b3a942a84
|
@ -1,10 +1,10 @@
|
|||
defmodule Mix.Tasks.Pleroma.Marker do
|
||||
use Mix.Task
|
||||
import Mix.Pleroma
|
||||
|
||||
import Ecto.Query
|
||||
alias Pleroma.Repo
|
||||
|
||||
alias Pleroma.Notification
|
||||
alias Pleroma.Repo
|
||||
|
||||
def run(["update_markers"]) do
|
||||
start_pleroma()
|
||||
|
|
|
@ -30,7 +30,7 @@ test "gets markers with correct scopes", %{conn: conn} do
|
|||
"last_read_id" => "69420",
|
||||
"updated_at" => NaiveDateTime.to_iso8601(marker.updated_at),
|
||||
"version" => 0,
|
||||
"pleroma" => %{ "unread_count" => 7 }
|
||||
"pleroma" => %{"unread_count" => 7}
|
||||
}
|
||||
}
|
||||
end
|
||||
|
@ -72,7 +72,7 @@ test "creates a marker with correct scopes", %{conn: conn} do
|
|||
"last_read_id" => "69420",
|
||||
"updated_at" => _,
|
||||
"version" => 0,
|
||||
"pleroma" => %{ "unread_count" => 0 }
|
||||
"pleroma" => %{"unread_count" => 0}
|
||||
}
|
||||
} = response
|
||||
end
|
||||
|
@ -102,7 +102,7 @@ test "updates exist marker", %{conn: conn} do
|
|||
"last_read_id" => "69888",
|
||||
"updated_at" => NaiveDateTime.to_iso8601(marker.updated_at),
|
||||
"version" => 0,
|
||||
"pleroma" => %{ "unread_count" => 0 }
|
||||
"pleroma" => %{"unread_count" => 0}
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue