Skip to content

Commit

Permalink
test: adds test coverage juggler.get task
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Feb 5, 2024
1 parent 6779ef3 commit d6956a7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/juggler_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,24 @@ 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 d6956a7

Please sign in to comment.