Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Dec 7, 2023
1 parent 3c4fa2c commit 6f39bba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## main

### Improvements

* Rewrite `{Map|Keyword}.merge(single_key: value)` to use `put/3` instead

## v0.10.5

After being bitten by two of them in a row, Styler's test suite now makes sure that there are no
Expand Down
2 changes: 1 addition & 1 deletion test/style/pipes_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ defmodule Styler.Style.PipesTest do
end

describe "simple rewrites" do
test "{Keyword/Map}.merge/2 of a single key => *.put/2" do
test "{Keyword/Map}.merge/2 of a single key => *.put/3" do
for module <- ~w(Map Keyword) do
assert_style "foo |> #{module}.merge(%{one_key: :bar}) |> bop()", "foo |> #{module}.put(:one_key, :bar) |> bop()"
end
Expand Down

0 comments on commit 6f39bba

Please sign in to comment.