Remove trailing whitespace from unit tests (#19836)

This commit is contained in:
Andy
2017-11-08 13:18:23 -08:00
committed by GitHub
parent 80d1aa0b4f
commit 20e36dba53
6 changed files with 18 additions and 18 deletions

View File

@@ -122,9 +122,9 @@ namespace ts {
{
const text = `
namespace M
namespace M
{
namespace M2
namespace M2
{
function foo() {
// comment 1
@@ -572,7 +572,7 @@ const x = 1;`;
}
{
const text = `
const x = 1,
const x = 1,
y = 2;`;
runSingleFileTest("insertNodeInListAfter6", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => {
changeTracker.insertNodeInListAfter(sourceFile, findChild("x", sourceFile), createVariableDeclaration("z", /*type*/ undefined, createLiteral(1)));
@@ -583,7 +583,7 @@ const x = 1,
}
{
const text = `
const /*x*/ x = 1,
const /*x*/ x = 1,
/*y*/ y = 2;`;
runSingleFileTest("insertNodeInListAfter8", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => {
changeTracker.insertNodeInListAfter(sourceFile, findChild("x", sourceFile), createVariableDeclaration("z", /*type*/ undefined, createLiteral(1)));