Add test case for codeFix

This commit is contained in:
Markus Wolf 2018-10-19 17:17:45 +02:00
parent de7faa1b7e
commit d411fa34a7
No known key found for this signature in database
GPG key ID: 46051C9BE153B7A5

View file

@ -0,0 +1,22 @@
/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @noUnusedParameters: true
////export class Example {
//// prop: any;
//// constructor(private arg: any) {
//// this.prop = arg;
//// }
////}
verify.codeFix({
description: "Remove declaration for: 'arg'",
newFileContent:
`export class Example {
prop: any;
constructor(arg: any) {
this.prop = arg;
}
}`,
});