Skip to content

Commit 95fb694

Browse files
committed
Consistify tabs/spaces in test and baselines
1 parent b472e9a commit 95fb694

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/testRunner/unittests/services/convertToAsyncFunction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,13 +1230,13 @@ const { length } = [#|function|] () {
12301230

12311231
_testConvertToAsyncFunction("convertToAsyncFunction_catchBlockUniqueParams", `
12321232
function [#|f|]() {
1233-
return Promise.resolve().then(x => 1).catch(x => "a").then(x => !!x);
1233+
return Promise.resolve().then(x => 1).catch(x => "a").then(x => !!x);
12341234
}
12351235
`);
12361236

12371237
_testConvertToAsyncFunction("convertToAsyncFunction_catchBlockUniqueParamsBindingPattern", `
12381238
function [#|f|]() {
1239-
return Promise.resolve().then(() => ({ x: 3 })).catch(() => ({ x: "a" })).then(({ x }) => !!x);
1239+
return Promise.resolve().then(() => ({ x: 3 })).catch(() => ({ x: "a" })).then(({ x }) => !!x);
12401240
}
12411241
`);
12421242

tests/baselines/reference/convertToAsyncFunction/convertToAsyncFunction_catchBlockUniqueParams.js

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

33
function /*[#|*/f/*|]*/() {
4-
return Promise.resolve().then(x => 1).catch(x => "a").then(x => !!x);
4+
return Promise.resolve().then(x => 1).catch(x => "a").then(x => !!x);
55
}
66

77
// ==ASYNC FUNCTION::Convert to async function==
88

99
async function f() {
10-
let x_2;
10+
let x_2;
1111
try {
1212
const x = await Promise.resolve();
1313
x_2 = 1;

tests/baselines/reference/convertToAsyncFunction/convertToAsyncFunction_catchBlockUniqueParams.ts

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

33
function /*[#|*/f/*|]*/() {
4-
return Promise.resolve().then(x => 1).catch(x => "a").then(x => !!x);
4+
return Promise.resolve().then(x => 1).catch(x => "a").then(x => !!x);
55
}
66

77
// ==ASYNC FUNCTION::Convert to async function==
88

99
async function f() {
10-
let x_2: string | number;
10+
let x_2: string | number;
1111
try {
1212
const x = await Promise.resolve();
1313
x_2 = 1;

tests/baselines/reference/convertToAsyncFunction/convertToAsyncFunction_catchBlockUniqueParamsBindingPattern.js

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

33
function /*[#|*/f/*|]*/() {
4-
return Promise.resolve().then(() => ({ x: 3 })).catch(() => ({ x: "a" })).then(({ x }) => !!x);
4+
return Promise.resolve().then(() => ({ x: 3 })).catch(() => ({ x: "a" })).then(({ x }) => !!x);
55
}
66

77
// ==ASYNC FUNCTION::Convert to async function==
88

99
async function f() {
10-
let result;
10+
let result;
1111
try {
1212
await Promise.resolve();
1313
result = ({ x: 3 });

tests/baselines/reference/convertToAsyncFunction/convertToAsyncFunction_catchBlockUniqueParamsBindingPattern.ts

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

33
function /*[#|*/f/*|]*/() {
4-
return Promise.resolve().then(() => ({ x: 3 })).catch(() => ({ x: "a" })).then(({ x }) => !!x);
4+
return Promise.resolve().then(() => ({ x: 3 })).catch(() => ({ x: "a" })).then(({ x }) => !!x);
55
}
66

77
// ==ASYNC FUNCTION::Convert to async function==
88

99
async function f() {
10-
let result: { x: number; } | { x: string; };
10+
let result: { x: number; } | { x: string; };
1111
try {
1212
await Promise.resolve();
1313
result = ({ x: 3 });

0 commit comments

Comments
 (0)