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