mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 22:51:17 -05:00
do not insert space after function expressions
This commit is contained in:
@@ -37,4 +37,4 @@ verify.currentLineContentIs(" x = 'Foo';");
|
||||
goTo.marker("11");
|
||||
verify.currentLineContentIs(" return fun;");
|
||||
goTo.marker("12");
|
||||
verify.currentLineContentIs(" } (fun1));");
|
||||
verify.currentLineContentIs(" }(fun1));");
|
||||
@@ -72,6 +72,8 @@
|
||||
////<span>) </span>;/*closingParenInJsxElement2*/
|
||||
////<Router routes = { 3 } / >;/*jsxExpressionSpaces*/
|
||||
////<Router routes={ (3) } />;/*jsxExpressionSpaces2*/
|
||||
////<Router routes={() => {}}/*jsxExpressionSpaces3*/
|
||||
/////>;/*jsxDanglingSelfClosingToken*/
|
||||
|
||||
format.document();
|
||||
goTo.marker("autoformat");
|
||||
@@ -120,8 +122,7 @@ goTo.marker("expressionIndent");
|
||||
verify.indentationIs(12);
|
||||
|
||||
goTo.marker("danglingBracketAutoformat")
|
||||
// TODO: verify.currentLineContentIs(" >");
|
||||
verify.currentLineContentIs(" >");
|
||||
verify.currentLineContentIs(" >");
|
||||
goTo.marker("closingTagAutoformat");
|
||||
verify.currentLineContentIs(" </div>");
|
||||
|
||||
@@ -145,4 +146,8 @@ verify.currentLineContentIs("<span>) </span>;");
|
||||
goTo.marker("jsxExpressionSpaces");
|
||||
verify.currentLineContentIs("<Router routes={3} />;");
|
||||
goTo.marker("jsxExpressionSpaces2");
|
||||
verify.currentLineContentIs("<Router routes={(3)} />;");
|
||||
verify.currentLineContentIs("<Router routes={(3)} />;");
|
||||
goTo.marker("jsxExpressionSpaces3");
|
||||
verify.currentLineContentIs("<Router routes={() => { }}");
|
||||
goTo.marker("jsxDanglingSelfClosingToken");
|
||||
verify.currentLineContentIs("/>;");
|
||||
Reference in New Issue
Block a user