diff --git a/CHANGELOG.md b/CHANGELOG.md index 11460ae8..1a1e535a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ they can and will change without that change being reflected in Styler's semanti ### Improvements +* `pipes`: pipe-ifies when first arg to a function is a pipe. reach out if this happens in unstylish places in your code (Closes #133) * `pipes`: unpiping assignments will make the assignment one-line when possible (Closes #181) ### Fixes diff --git a/test/style/pipes_test.exs b/test/style/pipes_test.exs index 069e23ec..0da3eb5d 100644 --- a/test/style/pipes_test.exs +++ b/test/style/pipes_test.exs @@ -936,6 +936,30 @@ defmodule Styler.Style.PipesTest do test "pipifying" do assert_style "d(a |> b |> c)", "a |> b() |> c() |> d()" + + assert_style( + """ + # d + d( + # a + a + # b + |> b + # c + |> c + ) + """, + """ + # d + # a + a + # b + |> b() + # c + |> c() + |> d() + """ + ) end end end