@@ -8,43 +8,43 @@ import {
88const TEST_CASES = [
99 {
1010 code : '<template>hi</template>' ,
11- expected : [ `{/*hi */}` ] ,
11+ expected : [ `{/* */}` ] ,
1212 } ,
1313 {
1414 code : '<template>/* hi */</template>' ,
15- expected : [ `{/*~* hi *~ */}` ] ,
15+ expected : [ `{/* */}` ] ,
1616 } ,
1717 {
1818 code : '<template><div>hi</div></template>' ,
19- expected : [ `{/*<div>hi<~div> */}` ] ,
19+ expected : [ `{/* */}` ] ,
2020 } ,
2121 {
2222 code : '<template>{{#if true}}hi{{/if}}</template>' ,
23- expected : [ `{/*{{#if true}}hi{{~if}} */}` ] ,
23+ expected : [ `{/* */}` ] ,
2424 } ,
2525 {
26- code : '<template>////////////////</template>' ,
27- expected : [ `{/*~~~~~~~~~~~~~~~~ */}` ] ,
26+ code : '<template>////////\n ////////</template>' ,
27+ expected : [ `{/* \n */}` ] ,
2828 } ,
2929 {
3030 code : '<template>💩</template>' ,
31- expected : [ `{/*💩 */}` ] ,
31+ expected : [ `{/* */}` ] ,
3232 } ,
3333 {
3434 code : 'const a = <template>foo</template>; const b = <template>bar</template>;' ,
3535 expected : [
36- `const a = {/*foo */}; const b = <template>bar</template>;` ,
37- `const a = <template>foo</template>; const b = {/*bar */};` ,
36+ `const a = {/* */}; const b = <template>bar</template>;` ,
37+ `const a = <template>foo</template>; const b = {/* */};` ,
3838 ] ,
3939 } ,
4040 {
4141 code : `const a = <template>💩💩💩💩💩💩💩</template>; const b = <template>💩</template>` ,
4242 expected : [
43- `const a = {/*💩💩💩💩💩💩💩 */}; const b = <template>💩</template>` ,
44- `const a = <template>💩💩💩💩💩💩💩</template>; const b = {/*💩 */}` ,
43+ `const a = {/* */}; const b = <template>💩</template>` ,
44+ `const a = <template>💩💩💩💩💩💩💩</template>; const b = {/* */}` ,
4545 ] ,
4646 } ,
47- ] ;
47+ ] . toReversed ( )
4848const FILE_NAME = 'foo.gts' ;
4949
5050describe ( 'preprocess' , ( ) => {
0 commit comments