|
1 | 1 | ///<reference path="fourslash.ts"/> |
2 | 2 |
|
3 | | -/////*InsertSpaceAfterCommaDelimiter*/[1,2, 3]; |
| 3 | +/////*InsertSpaceAfterCommaDelimiter*/[1,2, 3];[ 72 , ]; |
4 | 4 | /////*InsertSpaceAfterSemicolonInForStatements*/for (i = 0;i; i++); |
5 | 5 | /////*InsertSpaceBeforeAndAfterBinaryOperators*/1+2- 3 |
6 | 6 | /////*InsertSpaceAfterKeywordsInControlFlowStatements*/if (true) { } |
|
13 | 13 | /////*PlaceOpenBraceOnNewLineForControlBlocks*/if (true) { |
14 | 14 | ////} |
15 | 15 |
|
16 | | -runTest("InsertSpaceAfterCommaDelimiter", "[1, 2, 3];", "[1,2,3];"); |
| 16 | +runTest("InsertSpaceAfterCommaDelimiter", "[1, 2, 3];[72,];", "[1,2,3];[72,];"); |
17 | 17 | runTest("InsertSpaceAfterSemicolonInForStatements", "for (i = 0; i; i++);", "for (i = 0;i;i++);"); |
18 | 18 | runTest("InsertSpaceBeforeAndAfterBinaryOperators", "1 + 2 - 3", "1+2-3"); |
19 | 19 | runTest("InsertSpaceAfterKeywordsInControlFlowStatements", "if (true) { }", "if(true) { }"); |
20 | 20 | runTest("InsertSpaceAfterFunctionKeywordForAnonymousFunctions", "(function () { })", "(function() { })"); |
21 | 21 | runTest("InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis", " ( 1 )", " (1)"); |
22 | | -runTest("InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets", "[ 1 ];[];[];[ , ];", "[1];[];[];[, ];"); |
| 22 | +runTest("InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets", "[ 1 ];[];[];[ , ];", "[1];[];[];[,];"); |
23 | 23 | runTest("InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces", "`${ 1 }`; `${ 1 }`", "`${1}`; `${1}`"); |
24 | 24 | runTest("PlaceOpenBraceOnNewLineForFunctions", "class foo", "class foo {"); |
25 | 25 | runTest("PlaceOpenBraceOnNewLineForControlBlocks", "if ( true )", "if ( true ) {"); |
|
0 commit comments