Skip to content

Commit ea2942b

Browse files
committed
Fixed jsdoc tests
1 parent 5586828 commit ea2942b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/TSHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class TSHelper {
130130

131131
type.symbol.getJsDocTags().forEach(tag => {
132132
if (Decorator.isValid(tag.name)) {
133-
const dec = new Decorator(tag.name, tag.text.split(" "));
133+
const dec = new Decorator(tag.name, tag.text ? tag.text.split(" ") : []);
134134
decMap.set(dec.kind, dec);
135135
}
136136
});

test/runner.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,7 @@ testRunner.run(testSet)
3434
.catch(error => {
3535
// Remove lualib bundle again
3636
fs.unlinkSync("lualib_bundle.lua");
37+
38+
console.error(error);
39+
process.exit(1);
3740
});

0 commit comments

Comments
 (0)