diff --git a/test/towerops/sites_test.exs b/test/towerops/sites_test.exs index 0fda7cb0..5fb6887d 100644 --- a/test/towerops/sites_test.exs +++ b/test/towerops/sites_test.exs @@ -218,7 +218,7 @@ defmodule Towerops.SitesTest do assert hd(hd(root1_node.children).children).site.id == grandchild.id root2_node = Enum.find(tree, &(&1.site.id == root2.id)) - assert length(root2_node.children) == 0 + assert root2_node.children == [] end test "build_site_tree/1 returns empty list for organization with no sites", %{organization: organization} do