Skip to content

Commit 20e36db

Browse files
author
Andy
authored
Remove trailing whitespace from unit tests (#19836)
1 parent 80d1aa0 commit 20e36db

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

src/harness/unittests/textChanges.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ namespace ts {
122122

123123
{
124124
const text = `
125-
namespace M
125+
namespace M
126126
{
127-
namespace M2
127+
namespace M2
128128
{
129129
function foo() {
130130
// comment 1
@@ -572,7 +572,7 @@ const x = 1;`;
572572
}
573573
{
574574
const text = `
575-
const x = 1,
575+
const x = 1,
576576
y = 2;`;
577577
runSingleFileTest("insertNodeInListAfter6", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => {
578578
changeTracker.insertNodeInListAfter(sourceFile, findChild("x", sourceFile), createVariableDeclaration("z", /*type*/ undefined, createLiteral(1)));
@@ -583,7 +583,7 @@ const x = 1,
583583
}
584584
{
585585
const text = `
586-
const /*x*/ x = 1,
586+
const /*x*/ x = 1,
587587
/*y*/ y = 2;`;
588588
runSingleFileTest("insertNodeInListAfter8", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => {
589589
changeTracker.insertNodeInListAfter(sourceFile, findChild("x", sourceFile), createVariableDeclaration("z", /*type*/ undefined, createLiteral(1)));

tests/baselines/reference/textChanges/extractMethodLike.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
===ORIGINAL===
22

3-
namespace M
3+
namespace M
44
{
5-
namespace M2
5+
namespace M2
66
{
77
function foo() {
88
// comment 1
@@ -22,7 +22,7 @@ namespace M
2222
}
2323
===MODIFIED===
2424

25-
namespace M
25+
namespace M
2626
{
2727
function bar(): any
2828
{
@@ -37,7 +37,7 @@ namespace M
3737
const y = 2; // comment 3
3838
return 1;
3939
}
40-
namespace M2
40+
namespace M2
4141
{
4242
function foo() {
4343
// comment 1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
===ORIGINAL===
22

3-
const x = 1,
3+
const x = 1,
44
y = 2;
55
===MODIFIED===
66

7-
const x = 1,
8-
z = 1,
7+
const x = 1,
8+
z = 1,
99
y = 2;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
===ORIGINAL===
22

3-
const x = 1,
3+
const x = 1,
44
y = 2;
55
===MODIFIED===
66

7-
const x = 1,
7+
const x = 1,
88
y = 2,
99
z = 1;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
===ORIGINAL===
22

3-
const /*x*/ x = 1,
3+
const /*x*/ x = 1,
44
/*y*/ y = 2;
55
===MODIFIED===
66

7-
const /*x*/ x = 1,
8-
z = 1,
7+
const /*x*/ x = 1,
8+
z = 1,
99
/*y*/ y = 2;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
===ORIGINAL===
22

3-
const /*x*/ x = 1,
3+
const /*x*/ x = 1,
44
/*y*/ y = 2;
55
===MODIFIED===
66

7-
const /*x*/ x = 1,
7+
const /*x*/ x = 1,
88
/*y*/ y = 2,
99
z = 1;

0 commit comments

Comments
 (0)