Skip to content

Commit 645fdd3

Browse files
committed
fix(test): replace length/1 comparisons with empty list checks
1 parent 8db2888 commit 645fdd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ash_typescript/rpc/json_manifest_generator_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defmodule AshTypescript.Rpc.JsonManifestGeneratorTest do
4545

4646
test "actions is a non-empty list", %{manifest: manifest} do
4747
assert is_list(manifest["actions"])
48-
assert length(manifest["actions"]) > 0
48+
assert manifest["actions"] != []
4949
end
5050

5151
test "has files section with generated file entries", %{manifest: manifest} do
@@ -376,7 +376,7 @@ defmodule AshTypescript.Rpc.JsonManifestGeneratorTest do
376376
describe "typed controller routes" do
377377
test "routes is a list", %{manifest: manifest} do
378378
assert is_list(manifest["typedControllerRoutes"])
379-
assert length(manifest["typedControllerRoutes"]) > 0
379+
assert manifest["typedControllerRoutes"] != []
380380
end
381381

382382
test "each route has required fields", %{manifest: manifest} do

0 commit comments

Comments
 (0)