Skip to content

Commit

Permalink
test: adds test coverage juggler.get task (#4)
Browse files Browse the repository at this point in the history
* test: adds test coverage juggler.get task

* mix format
  • Loading branch information
grzuy authored Feb 6, 2024
1 parent 6779ef3 commit 994dd9b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/juggler_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,25 @@ defmodule JugglerTest do
end
)
end

test "juggler.get task" do
File.cd!(
@tmp_path,
fn ->
File.write(
"juggles.exs",
"""
%{
"jason-1-0": [{:jason, "~> 1.0"}]
}
"""
)

Mix.Task.run("juggler.get")
File.exists?("juggler/jason-1-0.mix.lock")
end
)

assert true
end
end

0 comments on commit 994dd9b

Please sign in to comment.