changes after rebase

This commit is contained in:
Alexander Strizhakov 2020-08-16 21:01:38 +03:00
parent 1d0e130cb3
commit c4c5caedd8
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
17 changed files with 2 additions and 3 deletions

View File

@ -2,8 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.FrontendStaticPlugTest do defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do
alias Pleroma.Plugs.FrontendStatic
use Pleroma.Web.ConnCase use Pleroma.Web.ConnCase
@dir "test/tmp/instance_static" @dir "test/tmp/instance_static"
@ -21,7 +20,7 @@ test "init will give a static plug config + the frontend type" do
at: "/admin", at: "/admin",
frontend_type: :admin frontend_type: :admin
] ]
|> FrontendStatic.init() |> Pleroma.Web.Plugs.FrontendStatic.init()
assert opts[:at] == ["admin"] assert opts[:at] == ["admin"]
assert opts[:frontend_type] == :admin assert opts[:frontend_type] == :admin