Add test case for codeFix
This commit is contained in:
parent
de7faa1b7e
commit
d411fa34a7
1 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
}`,
|
||||||
|
});
|
Loading…
Reference in a new issue