Update tests to expect empty doc comment template

This commit is contained in:
uniqueiniquity
2017-10-27 16:39:33 -07:00
parent 22eb519b0f
commit b566480aaa
7 changed files with 9 additions and 9 deletions

View File

@@ -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 {

View File

@@ -3,4 +3,4 @@
// @Filename: emptyFile.ts
/////*0*/
verify.noDocCommentTemplateAt("0");
verify.emptyDocCommentTemplateAt("0");

View File

@@ -3,4 +3,4 @@
// @Filename: justAComment.ts
//// /* /*0*/ */
verify.noDocCommentTemplateAt("0");
verify.emptyDocCommentTemplateAt("0");

View File

@@ -9,5 +9,5 @@
//// // /*2*/
for (const marker of test.markers()) {
verify.noDocCommentTemplateAt(marker);
verify.emptyDocCommentTemplateAt(marker);
}

View File

@@ -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);
}

View File

@@ -11,6 +11,6 @@ verify.docCommentTemplateAt("top", /*indentation*/ 8,
*
*/`);
verify.noDocCommentTemplateAt("n2");
verify.emptyDocCommentTemplateAt("n2");
verify.noDocCommentTemplateAt("n3");
verify.emptyDocCommentTemplateAt("n3");

View File

@@ -4,5 +4,5 @@
////var regex = /*0*///*1*/asdf/*2*/ /*3*///*4*/;
for (const marker of test.markers()) {
verify.noDocCommentTemplateAt(marker);
verify.emptyDocCommentTemplateAt(marker);
}