Skip to content

Commit

Permalink
Back to fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterboerner committed Feb 17, 2025
1 parent bc3a313 commit e71cd08
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ config :logger, :console,
# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason

config :phoenix_test, :endpoint, TheronsErpWeb.Endpoint

# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{config_env()}.exs"
2 changes: 1 addition & 1 deletion lib/therons_erp_web/breadcrumbs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ defmodule TheronsErpWeb.Breadcrumbs do
"New category"
end

defp name_for_crumb({"product_category", _cid, params, name}) do
defp name_for_crumb({"product_category", _cid, _params, name}) do
"#{name}"
end

Expand Down
2 changes: 1 addition & 1 deletion test/breadcrumb_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule TheronsErpWeb.BreadcrumbTest do
use TheronsErpWeb.ConnCase
use TheronsErp.DataCase

test "stream_crumbs" do
out =
Expand Down
3 changes: 1 addition & 2 deletions test/therons_erp_web/breadcrumbs_test.exs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
defmodule TheronsErpWeb.BreadcrumbsTest do
use TheronsErpWeb.DataCase
use TheronsErpWeb.ConnCase

alias TheronsErpWeb.Breadcrumbs
use Breadcrumbs

describe "Navigate Forward" do
test "People" do
Expand Down

0 comments on commit e71cd08

Please sign in to comment.