We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a32841 commit 08a8cc7Copy full SHA for 08a8cc7
test/dox.test.js
@@ -964,4 +964,13 @@ module.exports = {
964
done();
965
});
966
},
967
+
968
+ 'test generic types': function(done){
969
+ fixture('types.js', function(err, str){
970
+ var comments = dox.parseComments(str);
971
+ comments[0].tags[0].types[0].should.equal("Promise<string|null>");
972
+ comments[1].tags[0].types[0].should.equal("Promise.<string|null>");
973
+ done();
974
+ });
975
+ },
976
};
test/fixtures/types.js
@@ -0,0 +1,7 @@
1
+/**
2
+ * @return {Promise<string | null>} Promise that returns a string if available.
3
+ */
4
5
6
+ * @return {Promise.<string | null>} Promise that returns a string if available.
7
0 commit comments