Skip to content

Commit e6bcc79

Browse files
committed
Added test case to example2 class
1 parent 6d24ecf commit e6bcc79

4 files changed

Lines changed: 16 additions & 2 deletions

File tree

api-extractor/src/DebugRun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ analyzer.analyze({
2727
jsx: ts.JsxEmit.React,
2828
rootDir: ''
2929
},
30-
entryPointFile: '', // local/bundles/platform-exports.ts',
30+
entryPointFile: '',
3131
otherFiles: []
3232
});
3333

api-extractor/src/TypeScriptHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class TypeScriptHelpers {
1818
/**
1919
* End sequence is '*\/'.
2020
*/
21-
public static jsDocEndRegEx: RegExp = /\s*\*\//g;
21+
public static jsDocEndRegEx: RegExp = /\s*\*\/\s*$/g;
2222

2323
/**
2424
* Intermediate lines of JSDoc comment character.

api-extractor/testInputs/example2/example2-output.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,19 @@
327327
"isBeta": false
328328
}
329329
}
330+
},
331+
"TestMissingCommentStar": {
332+
"kind": "enum",
333+
"values": {},
334+
"deprecatedMessage": [],
335+
"summary": [
336+
{
337+
"kind": "textDocElement",
338+
"value": "Degenerate comment star missing here end of comment"
339+
}
340+
],
341+
"remarks": [],
342+
"isBeta": false
330343
}
331344
}
332345
}

api-extractor/testInputs/example2/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export {
2+
TestMissingCommentStar,
23
inheritDisplayMode,
34
inheritCorrectlyButNotFound,
45
inheritDisplayModeError,

0 commit comments

Comments
 (0)