File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ defmodule LazyHTMLTest do
264
264
265
265
spans = LazyHTML . query ( lazy_html , "span" )
266
266
parents = LazyHTML . parent_node ( spans )
267
- parent_ids = parents |> Enum . flat_map ( & LazyHTML . attribute ( & 1 , "id" ) ) |> Enum . sort ( )
267
+ parent_ids = parents |> LazyHTML . attribute ( "id" ) |> Enum . sort ( )
268
268
assert parent_ids == [ "a" , "b" ]
269
269
270
270
# parent of div#id="a" is null
@@ -290,7 +290,7 @@ defmodule LazyHTMLTest do
290
290
291
291
spans = LazyHTML . query ( lazy_html , "span" )
292
292
parents = LazyHTML . parent_node ( spans )
293
- parent_ids = parents |> Enum . flat_map ( & LazyHTML . attribute ( & 1 , "id" ) ) |> Enum . sort ( )
293
+ parent_ids = parents |> LazyHTML . attribute ( "id" ) |> Enum . sort ( )
294
294
assert parent_ids == [ "b" , "c" ]
295
295
296
296
# since they share the same parent, we now only have one node left
You can’t perform that action at this time.
0 commit comments