diff options
author | Alessio Biancalana <dottorblaster@gmail.com> | 2020-12-19 18:58:52 +0100 |
---|---|---|
committer | Alessio Biancalana <dottorblaster@gmail.com> | 2021-01-03 12:42:44 +0100 |
commit | a89242d0dd8fb149e254c9ad546e1fded602f2dc (patch) | |
tree | e9cdda1230680b04484c0783de8f74d0cb90ec1f | |
parent | 0eff137e218bbd711d74267a322d70334f549990 (diff) | |
download | couchdb-a89242d0dd8fb149e254c9ad546e1fded602f2dc.tar.gz |
Switch from assert length === 0 to Enum.empty? as Credo suggests
-rw-r--r-- | test/elixir/test/all_docs_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/elixir/test/all_docs_test.exs b/test/elixir/test/all_docs_test.exs index 5523565a4..935859b29 100644 --- a/test/elixir/test/all_docs_test.exs +++ b/test/elixir/test/all_docs_test.exs @@ -420,7 +420,7 @@ defmodule AllDocsTest do 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 |