Skip to content

Commit 41ebeec

Browse files
committed
Revert unrelated fourslash test changes
1 parent e0a685d commit 41ebeec

8 files changed

+12
-13
lines changed

tests/cases/fourslash/codeFixAwaitInSyncFunction4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path='fourslash.ts' />
22

33
////class Foo {
4-
//// constructor() {
4+
//// constructor {
55
//// await Promise.resolve();
66
//// }
77
////}

tests/cases/fourslash/codeFixAwaitInSyncFunction7.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path='fourslash.ts' />
22

33
////function f() {
4-
//// for await (const x of []) {
4+
//// for await (const x of g()) {
55
//// console.log(x);
66
//// }
77
////}
@@ -10,7 +10,7 @@ verify.codeFix({
1010
description: "Add async modifier to containing function",
1111
newFileContent:
1212
`async function f() {
13-
for await (const x of []) {
13+
for await (const x of g()) {
1414
console.log(x);
1515
}
1616
}`,
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference path='fourslash.ts' />
22

3-
////async function a() {}
43
////await a
54

65
verify.not.codeFixAvailable();

tests/cases/fourslash/codeFixClassImplementInterfaceIndexSignaturesNoFix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//// [x: string, y: number]: number;
55
//// }
66
////
7-
//// class C implements I4 {[| |]}
7+
//// class C implements I {[| |]}
88

99
verify.not.codeFixAvailable();
1010

tests/cases/fourslash/codeFixUnusedIdentifier_destructure_allUnused.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// @noUnusedParameters: true
55

66
////export {};
7-
////const { x, y } = {};
7+
////const { x, y } = o;
88

99
verify.codeFix({
1010
description: "Remove destructuring",

tests/cases/fourslash/codeFixUnusedIdentifier_destructure_allUnused_all.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// @noUnusedLocals: true
44
// @noUnusedParameters: true
55

6-
////const { x, y } = {};
7-
////const { a, b } = {};
6+
////const { x, y } = o;
7+
////const { a, b } = o;
88
////a;
99
////export function f({ a, b }, { x, y }) {
1010
//// a;
@@ -14,7 +14,7 @@ verify.codeFixAll({
1414
fixId: "unusedIdentifier_delete",
1515
fixAllDescription: "Delete all unused declarations",
1616
newFileContent:
17-
`const { a } = {};
17+
`const { a } = o;
1818
a;
1919
export function f({ a }) {
2020
a;

tests/cases/fourslash/codeFixUnusedIdentifier_destructure_allUnused_for.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// @noUnusedLocals: true
44
// @noUnusedParameters: true
55

6-
////for (const { x } of [{}]) {}
6+
////for (const { x } of o) {}
77

88
verify.codeFix({
99
description: "Remove destructuring",
1010
newFileContent:
11-
`for (const {} of [{}]) {}`,
11+
`for (const {} of o) {}`,
1212
});

tests/cases/fourslash/codeFixUnusedIdentifier_destructure_allUnused_nested.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// @noUnusedParameters: true
55

66
////export {};
7-
////const { x: { a, b } } = {{}};
7+
////const { x: { a, b } } = o;
88

99
verify.codeFix({
1010
description: "Remove destructuring",
1111
newFileContent:
1212
`export {};
13-
const { } = {{}};`,
13+
const { } = o;`,
1414
});

0 commit comments

Comments
 (0)