Skip to content

Commit d411fa3

Browse files
committed
Add test case for codeFix
1 parent de7faa1 commit d411fa3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
// @noUnusedLocals: true
4+
// @noUnusedParameters: true
5+
6+
////export class Example {
7+
//// prop: any;
8+
//// constructor(private arg: any) {
9+
//// this.prop = arg;
10+
//// }
11+
////}
12+
13+
verify.codeFix({
14+
description: "Remove declaration for: 'arg'",
15+
newFileContent:
16+
`export class Example {
17+
prop: any;
18+
constructor(arg: any) {
19+
this.prop = arg;
20+
}
21+
}`,
22+
});

0 commit comments

Comments
 (0)