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' />
////class Foo {
//// constructor() {
//// constructor {
//// await Promise.resolve();
//// }
////}

View file

@ -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);
}
}`,

View file

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

View file

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

View file

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

View file

@ -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;

View file

@ -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) {}`,
});

View file

@ -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;`,
});