Revert unrelated fourslash test changes

This commit is contained in:
Florian Regensburger 2019-07-02 00:36:44 +02:00
parent e0a685da4f
commit 41ebeec057
8 changed files with 12 additions and 13 deletions

View file

@ -1,7 +1,7 @@
/// <reference path='fourslash.ts' /> /// <reference path='fourslash.ts' />
////class Foo { ////class Foo {
//// constructor() { //// constructor {
//// await Promise.resolve(); //// await Promise.resolve();
//// } //// }
////} ////}

View file

@ -1,7 +1,7 @@
/// <reference path='fourslash.ts' /> /// <reference path='fourslash.ts' />
////function f() { ////function f() {
//// for await (const x of []) { //// for await (const x of g()) {
//// console.log(x); //// console.log(x);
//// } //// }
////} ////}
@ -10,7 +10,7 @@ verify.codeFix({
description: "Add async modifier to containing function", description: "Add async modifier to containing function",
newFileContent: newFileContent:
`async function f() { `async function f() {
for await (const x of []) { for await (const x of g()) {
console.log(x); console.log(x);
} }
}`, }`,

View file

@ -1,6 +1,5 @@
/// <reference path='fourslash.ts' /> /// <reference path='fourslash.ts' />
////async function a() {}
////await a ////await a
verify.not.codeFixAvailable(); verify.not.codeFixAvailable();

View file

@ -4,7 +4,7 @@
//// [x: string, y: number]: number; //// [x: string, y: number]: number;
//// } //// }
//// ////
//// class C implements I4 {[| |]} //// class C implements I {[| |]}
verify.not.codeFixAvailable(); verify.not.codeFixAvailable();

View file

@ -4,7 +4,7 @@
// @noUnusedParameters: true // @noUnusedParameters: true
////export {}; ////export {};
////const { x, y } = {}; ////const { x, y } = o;
verify.codeFix({ verify.codeFix({
description: "Remove destructuring", description: "Remove destructuring",

View file

@ -3,8 +3,8 @@
// @noUnusedLocals: true // @noUnusedLocals: true
// @noUnusedParameters: true // @noUnusedParameters: true
////const { x, y } = {}; ////const { x, y } = o;
////const { a, b } = {}; ////const { a, b } = o;
////a; ////a;
////export function f({ a, b }, { x, y }) { ////export function f({ a, b }, { x, y }) {
//// a; //// a;
@ -14,7 +14,7 @@ verify.codeFixAll({
fixId: "unusedIdentifier_delete", fixId: "unusedIdentifier_delete",
fixAllDescription: "Delete all unused declarations", fixAllDescription: "Delete all unused declarations",
newFileContent: newFileContent:
`const { a } = {}; `const { a } = o;
a; a;
export function f({ a }) { export function f({ a }) {
a; a;

View file

@ -3,10 +3,10 @@
// @noUnusedLocals: true // @noUnusedLocals: true
// @noUnusedParameters: true // @noUnusedParameters: true
////for (const { x } of [{}]) {} ////for (const { x } of o) {}
verify.codeFix({ verify.codeFix({
description: "Remove destructuring", description: "Remove destructuring",
newFileContent: newFileContent:
`for (const {} of [{}]) {}`, `for (const {} of o) {}`,
}); });

View file

@ -4,11 +4,11 @@
// @noUnusedParameters: true // @noUnusedParameters: true
////export {}; ////export {};
////const { x: { a, b } } = {{}}; ////const { x: { a, b } } = o;
verify.codeFix({ verify.codeFix({
description: "Remove destructuring", description: "Remove destructuring",
newFileContent: newFileContent:
`export {}; `export {};
const { } = {{}};`, const { } = o;`,
}); });