mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 02:40:41 -07:00
Test trim without any content
This commit is contained in:
@@ -556,4 +556,8 @@ class TrimModeTest < Minitest::Test
|
|||||||
template = Liquid::Template.parse("B\n {%- if true %}{% endif %}", bug_compatible_whitespace_trimming: true)
|
template = Liquid::Template.parse("B\n {%- if true %}{% endif %}", bug_compatible_whitespace_trimming: true)
|
||||||
assert_equal("B", template.render)
|
assert_equal("B", template.render)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_trim_blank
|
||||||
|
assert_template_result('foobar', 'foo {{-}} bar')
|
||||||
|
end
|
||||||
end # TrimModeTest
|
end # TrimModeTest
|
||||||
|
|||||||
Reference in New Issue
Block a user