Mix format and clarify install docs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/lib/mix/tasks/sass.install.ex b/lib/mix/tasks/sass.install.ex
index d65c832..2de7a25 100644
--- a/lib/mix/tasks/sass.install.ex
+++ b/lib/mix/tasks/sass.install.ex
@@ -13,7 +13,7 @@ defmodule Mix.Tasks.Sass.Install do
config :dart_sass, :version, "#{DartSass.latest_version()}"
You can pass the `--if-missing` flag to only install it if
- one does not yet exist.
+ one does not yet exist at the given version.
"""
@shortdoc "Installs dart-sass under _build"
diff --git a/test/dart_sass_test.exs b/test/dart_sass_test.exs
index 796296f..d00404e 100644
--- a/test/dart_sass_test.exs
+++ b/test/dart_sass_test.exs
@@ -21,15 +21,15 @@ defmodule DartSassTest do
Mix.Task.rerun("sass.install", ["--if-missing"])
assert ExUnit.CaptureIO.capture_io(fn ->
- assert DartSass.run(:default, ["--version"]) == 0
- end) =~ "1.36.0"
+ assert DartSass.run(:default, ["--version"]) == 0
+ end) =~ "1.36.0"
Application.delete_env(:dart_sass, :version)
Mix.Task.rerun("sass.install", ["--if-missing"])
assert ExUnit.CaptureIO.capture_io(fn ->
- assert DartSass.run(:default, ["--version"]) == 0
- end) =~ @version
+ assert DartSass.run(:default, ["--version"]) == 0
+ end) =~ @version
end
end