8000 add tests · microsoft/TypeScript@b087ae0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b087ae0

Browse files
committed
add tests
1 parent a0dd804 commit b087ae0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////class A {
4+
//// constructor() {
5+
//// this._x = 10;
6+
//// }
7+
////}
8+
9+
verify.codeFixAvailable([
10+
{ description: "Declare a private property '_x'" },
11+
{ description: "Declare property '_x'" },
12+
{ description: "Add index signature for property '_x'" }
13+
])
14+
15+
verify.codeFix({
16+
description: [ts.Diagnostics.Declare_a_private_property_0.message, "_x"],
17+
index: 0,
18+
newFileContent:
19+
`class A {
20+
private _x: number;
21+
constructor() {
22+
this._x = 10;
23+
}
24+
}`
25+
});

0 commit comments

Comments
 (0)
0