Skip to content

Commit 6c4f1f6

Browse files
committed
Clean up github test
1 parent bd0d070 commit 6c4f1f6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/fixture/simple.output.github.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"code": "module.exports = function () {\n // this returns 1\n return 1;\n};",
3737
"path": "test/fixture/simple.input.js",
38-
"github": "https://github.com/documentationjs/documentation/blob/1e4dd63875058fdb540e9cd0141606eebd3a2f65/test/fixture/simple.input.js#L5-L8"
38+
"github": "[github]"
3939
},
4040
"errors": [
4141
"memberof reference to module not found"

test/normalize.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
function normalize(comments) {
22
comments.forEach(function (comment) {
33
delete comment.context.file;
4+
if (comment.context.github) {
5+
comment.context.github = '[github]';
6+
}
47
normalize(comment.members.instance);
58
normalize(comment.members.static);
69
});

0 commit comments

Comments
 (0)