Skip to content

Commit

Permalink
chore: rename existing mock
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed May 1, 2024
1 parent 943cc3f commit a354a2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/dotcom/dotcom.exs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ config :dotcom, route_populate_caches?: config_env() == :prod
routes_repo = if config_env() == :test, do: Routes.MockRepoApi, else: Routes.Repo
config :dotcom, :routes_repo_api, routes_repo

repo_module = if config_env() == :test, do: RoutePatterns.MockRepo, else: RoutePatterns.Repo
repo_module = if config_env() == :test, do: RoutePatterns.Repo.Mock, else: RoutePatterns.Repo

config :dotcom, :route_patterns_repo_api, repo_module

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule RoutePatterns.MockRepo do
defmodule RoutePatterns.Repo.Mock do
@moduledoc """
A mock RoutePatterns Repo client for testing purposes.
We are returning just a subset of what the actual API would return, given that this file is for testing purposes
Expand Down

0 comments on commit a354a2b

Please sign in to comment.