summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessio Biancalana <dottorblaster@gmail.com>2020-12-19 18:58:52 +0100
committerAlessio Biancalana <dottorblaster@gmail.com>2021-01-03 12:42:44 +0100
commita89242d0dd8fb149e254c9ad546e1fded602f2dc (patch)
treee9cdda1230680b04484c0783de8f74d0cb90ec1f
parent0eff137e218bbd711d74267a322d70334f549990 (diff)
downloadcouchdb-a89242d0dd8fb149e254c9ad546e1fded602f2dc.tar.gz
Switch from assert length === 0 to Enum.empty? as Credo suggests
-rw-r--r--test/elixir/test/all_docs_test.exs2
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