commit | a89242d0dd8fb149e254c9ad546e1fded602f2dc | [log] [tgz] |
---|---|---|
author | Alessio Biancalana <dottorblaster@gmail.com> | Sat Dec 19 18:58:52 2020 +0100 |
committer | Alessio Biancalana <dottorblaster@gmail.com> | Sun Jan 03 12:42:44 2021 +0100 |
tree | e9cdda1230680b04484c0783de8f74d0cb90ec1f | |
parent | 0eff137e218bbd711d74267a322d70334f549990 [diff] |
Switch from assert length === 0 to Enum.empty? as Credo suggests
diff --git a/test/elixir/test/all_docs_test.exs b/test/elixir/test/all_docs_test.exs index 5523565..935859b 100644 --- a/test/elixir/test/all_docs_test.exs +++ b/test/elixir/test/all_docs_test.exs
@@ -420,7 +420,7 @@ resp = Couch.get("/#{db_name}/_all_docs", query: %{:end_key => 0}).body rows = resp["rows"] - assert length(rows) === 0 + assert Enum.empty?(rows) end defp get_ids(resp) do