Skip to content

Commit feeb204

Browse files
committed
Fix fourslash tests
1 parent cf55bf9 commit feeb204

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

tests/cases/fourslash/completionEntryForConst.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
/////**/
55

66
goTo.marker();
7-
verify.completionListContains("c", "const c: string", /*documentation*/ undefined, "const");
7+
verify.completionListContains("c", "const c: \"s\"", /*documentation*/ undefined, "const");

tests/cases/fourslash/constQuickInfoAndCompletionList.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@
1010
//// /*7*/
1111
////}
1212
goTo.marker('1');
13-
verify.quickInfoIs("const a: number");
13+
verify.quickInfoIs("const a: 10");
1414

1515
goTo.marker('2');
16-
verify.completionListContains("a", "const a: number");
17-
verify.quickInfoIs("const a: number");
16+
verify.completionListContains("a", "const a: 10");
17+
verify.quickInfoIs("const a: 10");
1818

1919
goTo.marker('3');
20-
verify.completionListContains("a", "const a: number");
20+
verify.completionListContains("a", "const a: 10");
2121

2222
goTo.marker('4');
23-
verify.quickInfoIs("const b: number");
23+
verify.quickInfoIs("const b: 20");
2424

2525
goTo.marker('5');
26-
verify.completionListContains("a", "const a: number");
27-
verify.completionListContains("b", "const b: number");
28-
verify.quickInfoIs("const b: number");
26+
verify.completionListContains("a", "const a: 10");
27+
verify.completionListContains("b", "const b: 20");
28+
verify.quickInfoIs("const b: 20");
2929

3030
goTo.marker('6');
31-
verify.completionListContains("a", "const a: number");
32-
verify.completionListContains("b", "const b: number");
33-
verify.quickInfoIs("const a: number");
31+
verify.completionListContains("a", "const a: 10");
32+
verify.completionListContains("b", "const b: 20");
33+
verify.quickInfoIs("const a: 10");
3434

3535
goTo.marker('7');
36-
verify.completionListContains("a", "const a: number");
37-
verify.completionListContains("b", "const b: number");
36+
verify.completionListContains("a", "const a: 10");
37+
verify.completionListContains("b", "const b: 20");

tests/cases/fourslash/getJavaScriptSemanticDiagnostics24.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
//// x.canVote/**/;
1414

1515
goTo.marker();
16-
verify.quickInfoIs('(property) Person.canVote: number | boolean');
16+
verify.quickInfoIs('(property) Person.canVote: true | 23');

tests/cases/fourslash/goToTypeDefinitionEnumMembers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/// <reference path='fourslash.ts' />
22

3-
/////*definition*/enum E {
3+
////enum E {
44
//// value1,
5-
//// value2
5+
//// /*definition*/value2
66
////}
77
////var x = E.value2;
88
////

tests/cases/fourslash/quickInfoForConstDeclaration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
////const /**/c = 0 ;
44

55
goTo.marker();
6-
verify.quickInfoIs("const c: number");
6+
verify.quickInfoIs("const c: 0");

0 commit comments

Comments
 (0)