File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ defmodule TailwindTest do
2626 end ) =~ @ version
2727 end
2828
29- test "installs and updates with custom config and path " do
29+ test "installs and updates with custom config" do
3030 Application . put_env ( :tailwind , :version , "3.4.17" )
3131
3232 Mix.Task . rerun ( "tailwind.install" , [
@@ -36,5 +36,14 @@ defmodule TailwindTest do
3636 assert ExUnit.CaptureIO . capture_io ( fn ->
3737 assert Tailwind . run ( :default , [ "--help" ] ) == 0
3838 end ) =~ "3.4.17"
39+
40+ Application . delete_env ( :tailwind , :version )
41+
42+ Mix.Task . rerun ( "tailwind.install" , [ "--if-missing" ] )
43+ assert File . read! ( "assets/css/app.css" ) =~ "tailwind"
44+
45+ assert ExUnit.CaptureIO . capture_io ( fn ->
46+ assert Tailwind . run ( :default , [ "--help" ] ) == 0
47+ end ) =~ @ version
3948 end
4049end
You can’t perform that action at this time.
0 commit comments