Skip to content

Commit 7327e00

Browse files
committed
Make hierarchy tests 100% self-covering; fix bugs
1 parent ea9a913 commit 7327e00

12 files changed

+22
-867
lines changed

lib/hierarchy.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ function inferHierarchy(comments) {
7878

7979
default:
8080
if (!comment.scope) {
81-
parent.errors.push({
82-
message: 'found memberof but no @scope, @static, or @instance tag',
83-
commentLineNumber: memberOfTagLineNumber
81+
comment.errors.push({
82+
message: 'found memberof but no @scope, @static, or @instance tag'
8483
});
8584
continue;
8685
}

test/fixture/memberof-missing.input.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/fixture/memberof-missing.output.custom.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/fixture/memberof-missing.output.json

Lines changed: 0 additions & 96 deletions
This file was deleted.

test/fixture/memberof-missing.output.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/fixture/memberof-missing.output.md.json

Lines changed: 0 additions & 236 deletions
This file was deleted.

0 commit comments

Comments
 (0)