From 277f4592c1674d4ca5c7314ed08e189210206d54 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 29 Jun 2017 15:14:09 -0700 Subject: [PATCH] Add tests --- .../fourslash/convertFunctionToEs6ClassJsDoc.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/cases/fourslash/convertFunctionToEs6ClassJsDoc.ts b/tests/cases/fourslash/convertFunctionToEs6ClassJsDoc.ts index 87ee2a738c..e9f6449c8f 100644 --- a/tests/cases/fourslash/convertFunctionToEs6ClassJsDoc.ts +++ b/tests/cases/fourslash/convertFunctionToEs6ClassJsDoc.ts @@ -6,6 +6,13 @@ //// /** neat! */ //// this.x = 100; //// } +//// +//// /** awesome +//// * stuff +//// */ +//// fn.prototype.arr = () => { return ""; } +//// /** great */ +//// fn.prototype.arr2 = () => []; //// //// /** //// * This is a cool function! @@ -20,6 +27,12 @@ verify.fileAfterApplyingRefactorAtMarker('1', /** neat! */ this.x = 100; } + /** awesome + * stuff + */ + arr() { return ""; } + /** great */ + arr2() { return []; } /** * This is a cool function! */ @@ -28,4 +41,5 @@ verify.fileAfterApplyingRefactorAtMarker('1', } } + `, 'Convert to ES2015 class', 'convert');