Revert unrelated fourslash test changes
This commit is contained in:
parent
e0a685da4f
commit
41ebeec057
|
@ -1,7 +1,7 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////class Foo {
|
||||
//// constructor() {
|
||||
//// constructor {
|
||||
//// await Promise.resolve();
|
||||
//// }
|
||||
////}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////function f() {
|
||||
//// for await (const x of []) {
|
||||
//// for await (const x of g()) {
|
||||
//// console.log(x);
|
||||
//// }
|
||||
////}
|
||||
|
@ -10,7 +10,7 @@ verify.codeFix({
|
|||
description: "Add async modifier to containing function",
|
||||
newFileContent:
|
||||
`async function f() {
|
||||
for await (const x of []) {
|
||||
for await (const x of g()) {
|
||||
console.log(x);
|
||||
}
|
||||
}`,
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////async function a() {}
|
||||
////await a
|
||||
|
||||
verify.not.codeFixAvailable();
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//// [x: string, y: number]: number;
|
||||
//// }
|
||||
////
|
||||
//// class C implements I4 {[| |]}
|
||||
//// class C implements I {[| |]}
|
||||
|
||||
verify.not.codeFixAvailable();
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// @noUnusedParameters: true
|
||||
|
||||
////export {};
|
||||
////const { x, y } = {};
|
||||
////const { x, y } = o;
|
||||
|
||||
verify.codeFix({
|
||||
description: "Remove destructuring",
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// @noUnusedLocals: true
|
||||
// @noUnusedParameters: true
|
||||
|
||||
////const { x, y } = {};
|
||||
////const { a, b } = {};
|
||||
////const { x, y } = o;
|
||||
////const { a, b } = o;
|
||||
////a;
|
||||
////export function f({ a, b }, { x, y }) {
|
||||
//// a;
|
||||
|
@ -14,7 +14,7 @@ verify.codeFixAll({
|
|||
fixId: "unusedIdentifier_delete",
|
||||
fixAllDescription: "Delete all unused declarations",
|
||||
newFileContent:
|
||||
`const { a } = {};
|
||||
`const { a } = o;
|
||||
a;
|
||||
export function f({ a }) {
|
||||
a;
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
// @noUnusedLocals: true
|
||||
// @noUnusedParameters: true
|
||||
|
||||
////for (const { x } of [{}]) {}
|
||||
////for (const { x } of o) {}
|
||||
|
||||
verify.codeFix({
|
||||
description: "Remove destructuring",
|
||||
newFileContent:
|
||||
`for (const {} of [{}]) {}`,
|
||||
`for (const {} of o) {}`,
|
||||
});
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
// @noUnusedParameters: true
|
||||
|
||||
////export {};
|
||||
////const { x: { a, b } } = {{}};
|
||||
////const { x: { a, b } } = o;
|
||||
|
||||
verify.codeFix({
|
||||
description: "Remove destructuring",
|
||||
newFileContent:
|
||||
`export {};
|
||||
const { } = {{}};`,
|
||||
const { } = o;`,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue