Skip to content

Commit b566480

Browse files
Update tests to expect empty doc comment template
1 parent 22eb519 commit b566480

7 files changed

Lines changed: 9 additions & 9 deletions

src/harness/fourslash.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4050,9 +4050,9 @@ namespace FourSlashInterface {
40504050
this.state.verifyDocCommentTemplate({ newText: expectedText.replace(/\r?\n/g, "\r\n"), caretOffset: expectedOffset });
40514051
}
40524052

4053-
public noDocCommentTemplateAt(marker: string | FourSlash.Marker) {
4053+
public emptyDocCommentTemplateAt(marker: string | FourSlash.Marker) {
40544054
this.state.goToMarker(marker);
4055-
this.state.verifyDocCommentTemplate(/*expected*/ undefined);
4055+
this.state.verifyDocCommentTemplate({ newText: "", caretOffset: 0 });
40564056
}
40574057

40584058
public rangeAfterCodeFix(expectedText: string, includeWhiteSpace?: boolean, errorCode?: number, index?: number): void {

tests/cases/fourslash/docCommentTemplateEmptyFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
// @Filename: emptyFile.ts
44
/////*0*/
55

6-
verify.noDocCommentTemplateAt("0");
6+
verify.emptyDocCommentTemplateAt("0");

tests/cases/fourslash/docCommentTemplateInMultiLineComment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
// @Filename: justAComment.ts
44
//// /* /*0*/ */
55

6-
verify.noDocCommentTemplateAt("0");
6+
verify.emptyDocCommentTemplateAt("0");

tests/cases/fourslash/docCommentTemplateInSingleLineComment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
//// // /*2*/
1010

1111
for (const marker of test.markers()) {
12-
verify.noDocCommentTemplateAt(marker);
12+
verify.emptyDocCommentTemplateAt(marker);
1313
}

tests/cases/fourslash/docCommentTemplateInsideFunctionDeclaration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
////f/*0*/unction /*1*/foo/*2*/(/*3*/) /*4*/{ /*5*/}
55

66
for (const marker of test.markers()) {
7-
verify.noDocCommentTemplateAt(marker);
7+
verify.emptyDocCommentTemplateAt(marker);
88
}

tests/cases/fourslash/docCommentTemplateNamespacesAndModules02.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ verify.docCommentTemplateAt("top", /*indentation*/ 8,
1111
*
1212
*/`);
1313

14-
verify.noDocCommentTemplateAt("n2");
14+
verify.emptyDocCommentTemplateAt("n2");
1515

16-
verify.noDocCommentTemplateAt("n3");
16+
verify.emptyDocCommentTemplateAt("n3");

tests/cases/fourslash/docCommentTemplateRegex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
////var regex = /*0*///*1*/asdf/*2*/ /*3*///*4*/;
55

66
for (const marker of test.markers()) {
7-
verify.noDocCommentTemplateAt(marker);
7+
verify.emptyDocCommentTemplateAt(marker);
88
}

0 commit comments

Comments
 (0)