From 994dd9b56a1944ce6a5728f8d9e3a4cfaefb9eec Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Tue, 6 Feb 2024 10:25:31 -0300 Subject: [PATCH] test: adds test coverage juggler.get task (#4) * test: adds test coverage juggler.get task * mix format --- test/juggler_test.exs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/juggler_test.exs b/test/juggler_test.exs index 838894d..0dd291c 100644 --- a/test/juggler_test.exs +++ b/test/juggler_test.exs @@ -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