Skip to content

Commit

Permalink
Run the formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
intentionally-left-nil committed Jun 29, 2018
1 parent 2b909f8 commit 8ecdd0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/cli/commands/init.ex
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ defmodule Wand.CLI.Commands.Init do
end)
end

defp convert_dependency([name, opts]) when is_list(opts), do: convert_dependency([name, nil, opts])
defp convert_dependency([name, opts]) when is_list(opts),
do: convert_dependency([name, nil, opts])

defp convert_dependency([name, requirement]), do: convert_dependency([name, requirement, []])

defp convert_dependency([name, requirement, opts]) do
Expand Down
3 changes: 2 additions & 1 deletion test/commands/init_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ defmodule InitTest do
test "Regression test: initialize a path with git" do
stub_exists("wand.json", false)
stub_exists("./mix.exs", false)

[
["wand_core", [["git", "https://github.com/AnilRedshift/wand-core.git"]]],
["wand_core", [["git", "https://github.com/AnilRedshift/wand-core.git"]]]
]
|> Helpers.System.stub_get_deps()

Expand Down
2 changes: 1 addition & 1 deletion test/support/system.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule Wand.Test.Helpers.System do
def stub_get_deps(deps) do
message = WandCore.Poison.encode!(deps)

expect(Wand.SystemMock, :cmd, fn "mix", ["wand_core.get_deps"], _opts -> {message, 0} end)
expect(Wand.SystemMock, :cmd, fn "mix", ["wand_core.get_deps"], _opts -> {message, 0} end)
end

def stub_failed_get_deps() do
Expand Down

0 comments on commit 8ecdd0e

Please sign in to comment.