Skip to content

Commit

Permalink
Test.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Sep 26, 2022
1 parent 6ba9d5c commit 2776cd4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions test/data/html/tests.js
Expand Up @@ -3642,6 +3642,46 @@ exports.test_data = {
'{{/row}}'
]
}]
},{
name: "Does not add whitespace around custom elements ",
description: "Regression test for https://github.com/beautify-web/js-beautify/issues/1989",
tests: [{
input: [
'<span>',
' <span>',
' <span>The time for this result is 1:02</span',
' ><div>.</div',
' ><section>27</section>',
' </span>',
'</span>'
],
output: [
'<span>',
' <span>',
' <span>The time for this result is 1:02</span>',
' <div>.</div>',
' <section>27</section>',
' </span>',
'</span>'
]
}, {
input: [
'<span>',
' <span>',
' <span>The time for this result is 1:02</span',
' ><time-dot>.</time-dot',
' ><time-decimals>27</time-decimals>',
' </span>',
'</span>'
],
output: [
'<span>',
' <span>',
' <span>The time for this result is 1:02</span><time-dot>.</time-dot><time-decimals>27</time-decimals>',
' </span>',
'</span>'
]
}]
}, {
name: "New Test Suite"
}]
Expand Down

0 comments on commit 2776cd4

Please sign in to comment.