Skip to content

Commit a56233f

Browse files
Added tests related to completions with keywords.
1 parent 93108ef commit a56233f

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

tests/cases/fourslash/completionListAtEndOfIdentifierInArrowFunction01.ts renamed to tests/cases/fourslash/completionListAtEndOfWordInArrowFunction01.ts

File renamed without changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////(d, defaultIsAnInvalidParameterName) => d/*1*/
4+
5+
goTo.marker("1");
6+
verify.completionListContains("d");
7+
verify.completionListContains("defaultIsAnInvalidParameterName");
8+
9+
// This should probably stop working in the future.
10+
verify.completionListContains("default", "default", /*documentation*/ undefined, "keyword");
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////(d, defaultIsAnInvalidParameterName) => default/*1*/
4+
5+
goTo.marker("1");
6+
verify.completionListContains("defaultIsAnInvalidParameterName");
7+
8+
// This should probably stop working in the future.
9+
verify.completionListContains("default", "default", /*documentation*/ undefined, "keyword");

0 commit comments

Comments
 (0)