Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

Commit b0994e1

Browse files
committed
Merge pull request #424 from yapplabs/test-comments-can-strip-whitespace
test to show that stripping whitespace after comments is possible
2 parents 90fa31f + 3be393d commit b0994e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/htmlbars-syntax/tests/parser-node-test.js

+7
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,13 @@ test("Stripping - removes unnecessary text nodes", function() {
347347
]));
348348
});
349349

350+
test("Stripping - comments", function() {
351+
var t = "{{!~}}\n <li> foo </li>{{!~}}\n ";
352+
astEqual(t, b.program([
353+
b.element('li', [], [], [b.text(' foo ')])
354+
]));
355+
});
356+
350357
// TODO: Make these throw an error.
351358
//test("Awkward mustache in unquoted attribute value", function() {
352359
// var t = "<div class=a{{foo}}></div>";

0 commit comments

Comments
 (0)