Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"dependencies": {
"comment-parser": "0.3.0",
"jsdoctypeparser": "^1.1.4"
"jsdoctypeparser": "Kuniwak/jsdoctypeparser#peg"
},
"devDependencies": {
"chai": "^2.3.0",
Expand Down
11 changes: 6 additions & 5 deletions test/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ function fnBody(func) {
return out;
}

/**
* @typedef {{it: string, code: Function, rules: ?Object, errors: *, skip: ?boolean}} TestCase
*/

/**
* Testing helper object
*
* @param {Object} opts default options for jscs string checker
* @returns {{rules: function(Object),
* configure: function(Object),
* cases: function(Array.<TestCase{it: string, code: Function, ?rules: Object, ?errors: *, ?skip: boolean}>),
* check: function(string)}}
* @returns {{rules:function(Object), configure:function(Object), cases:function(TestCase[]), check:function(string)}}
*/
function rulesChecker(opts) {
var checker;
Expand Down Expand Up @@ -84,7 +85,7 @@ function rulesChecker(opts) {
/**
* Describe cases (wrapper for mocha it calls)
*
* @param {Array.<{it: string, code: Function, ?rules: Object, ?errors: *, ?skip: boolean}>} items
* @param {TestCase[]} items
*/
cases: function(items) {
items = items || [];
Expand Down
2 changes: 1 addition & 1 deletion test/lib/rules/validate-jsdoc/check-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('lib/rules/validate-jsdoc/check-types', function() {
/**
* @param {Obj+ect} q
* @param {Num/ber} w
* @return {Str~ing}
* @return {Str-ing}
*/
ClsName.prototype.point = function (q, w) {
}
Expand Down