Skip to content

Commit

Permalink
Remove isnothing() call in tests (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi authored Oct 6, 2023
1 parent a2b68ba commit f5e2204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/node.jl
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ end
end
# Call `replace` just on the second paragraph
p = replace(_flatten_text _remove_link, first(n.children).next.next)
@test isnothing(p.parent)
@test p.parent === nothing
# Note that _flatten_text didn't have any effect because `replace` doesn't
# touch the root node (but it did replace the link)
@test p == @ast Paragraph() do
Expand Down

0 comments on commit f5e2204

Please sign in to comment.