mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Remove trailing whitespace from unit tests (#19836)
This commit is contained in:
parent
80d1aa0b4f
commit
20e36dba53
@ -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)));
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
@ -1,9 +1,9 @@
|
||||
===ORIGINAL===
|
||||
|
||||
const x = 1,
|
||||
const x = 1,
|
||||
y = 2;
|
||||
===MODIFIED===
|
||||
|
||||
const x = 1,
|
||||
const x = 1,
|
||||
y = 2,
|
||||
z = 1;
|
||||
@ -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;
|
||||
@ -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;
|
||||
Loading…
x
Reference in New Issue
Block a user