We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18ae9e6 commit 92e77e3Copy full SHA for 92e77e3
__tests__/lib/github.js
@@ -85,3 +85,29 @@ test('enterprise repository', function() {
85
86
mock.restore();
87
});
88
+
89
+test('typedef', function() {
90
+ mock(mockRepo.master);
91
92
+ expect(
93
+ evaluate(function() {
94
+ /**
95
+ * A number, or a string containing a number.
96
+ * @typedef {(number|string)} NumberLike
97
+ */
98
99
100
+ * get one
101
+ * @returns {number} one
102
103
+ function getOne() {
104
+ return 1;
105
+ }
106
+ })[0].context.github
107
+ ).toEqual({
108
+ path: 'index.js',
109
+ url: 'https://github.com/foo/bar/blob/this_is_the_sha/index.js#L1-L4'
110
+ });
111
112
+ mock.restore();
113
+});
0 commit comments