mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
don't add comment node to the nodelist
This commit is contained in:
@@ -49,8 +49,8 @@ class BlockUnitTest < Minitest::Test
|
||||
|
||||
def test_with_block
|
||||
template = Liquid::Template.parse(" {% comment %} {% endcomment %} ")
|
||||
assert_equal([String, Comment, String], block_types(template.root.nodelist))
|
||||
assert_equal(3, template.root.nodelist.size)
|
||||
assert_equal([String, String], block_types(template.root.nodelist))
|
||||
assert_equal(2, template.root.nodelist.size)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user