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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)));

View File

@ -1,8 +1,8 @@
===ORIGINAL===
namespace M
namespace M
{
namespace M2
namespace M2
{
function foo() {
// comment 1
@ -22,7 +22,7 @@ namespace M
}
===MODIFIED===
namespace M
namespace M
{
function bar(): any
{
@ -37,7 +37,7 @@ namespace M
const y = 2; // comment 3
return 1;
}
namespace M2
namespace M2
{
function foo() {
// comment 1

View File

@ -1,9 +1,9 @@
===ORIGINAL===
const x = 1,
const x = 1,
y = 2;
===MODIFIED===
const x = 1,
z = 1,
const x = 1,
z = 1,
y = 2;

View File

@ -1,9 +1,9 @@
===ORIGINAL===
const x = 1,
const x = 1,
y = 2;
===MODIFIED===
const x = 1,
const x = 1,
y = 2,
z = 1;

View File

@ -1,9 +1,9 @@
===ORIGINAL===
const /*x*/ x = 1,
const /*x*/ x = 1,
/*y*/ y = 2;
===MODIFIED===
const /*x*/ x = 1,
z = 1,
const /*x*/ x = 1,
z = 1,
/*y*/ y = 2;

View File

@ -1,9 +1,9 @@
===ORIGINAL===
const /*x*/ x = 1,
const /*x*/ x = 1,
/*y*/ y = 2;
===MODIFIED===
const /*x*/ x = 1,
const /*x*/ x = 1,
/*y*/ y = 2,
z = 1;