mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 02:21:30 -05:00
Update tests to expect empty doc comment template
This commit is contained in:
@@ -4050,9 +4050,9 @@ namespace FourSlashInterface {
|
||||
this.state.verifyDocCommentTemplate({ newText: expectedText.replace(/\r?\n/g, "\r\n"), caretOffset: expectedOffset });
|
||||
}
|
||||
|
||||
public noDocCommentTemplateAt(marker: string | FourSlash.Marker) {
|
||||
public emptyDocCommentTemplateAt(marker: string | FourSlash.Marker) {
|
||||
this.state.goToMarker(marker);
|
||||
this.state.verifyDocCommentTemplate(/*expected*/ undefined);
|
||||
this.state.verifyDocCommentTemplate({ newText: "", caretOffset: 0 });
|
||||
}
|
||||
|
||||
public rangeAfterCodeFix(expectedText: string, includeWhiteSpace?: boolean, errorCode?: number, index?: number): void {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
// @Filename: emptyFile.ts
|
||||
/////*0*/
|
||||
|
||||
verify.noDocCommentTemplateAt("0");
|
||||
verify.emptyDocCommentTemplateAt("0");
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
// @Filename: justAComment.ts
|
||||
//// /* /*0*/ */
|
||||
|
||||
verify.noDocCommentTemplateAt("0");
|
||||
verify.emptyDocCommentTemplateAt("0");
|
||||
|
||||
@@ -9,5 +9,5 @@
|
||||
//// // /*2*/
|
||||
|
||||
for (const marker of test.markers()) {
|
||||
verify.noDocCommentTemplateAt(marker);
|
||||
verify.emptyDocCommentTemplateAt(marker);
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
////f/*0*/unction /*1*/foo/*2*/(/*3*/) /*4*/{ /*5*/}
|
||||
|
||||
for (const marker of test.markers()) {
|
||||
verify.noDocCommentTemplateAt(marker);
|
||||
verify.emptyDocCommentTemplateAt(marker);
|
||||
}
|
||||
|
||||
@@ -11,6 +11,6 @@ verify.docCommentTemplateAt("top", /*indentation*/ 8,
|
||||
*
|
||||
*/`);
|
||||
|
||||
verify.noDocCommentTemplateAt("n2");
|
||||
verify.emptyDocCommentTemplateAt("n2");
|
||||
|
||||
verify.noDocCommentTemplateAt("n3");
|
||||
verify.emptyDocCommentTemplateAt("n3");
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
////var regex = /*0*///*1*/asdf/*2*/ /*3*///*4*/;
|
||||
|
||||
for (const marker of test.markers()) {
|
||||
verify.noDocCommentTemplateAt(marker);
|
||||
verify.emptyDocCommentTemplateAt(marker);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user