Skip to content

Commit

Permalink
added 'generate a warning' test
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Aug 11, 2016
1 parent 82a4beb commit ae3f5b3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"collect-json": "^1.0.8",
"core-assert": "~0.2.0",
"coveralls": "^2.11.12",
"jsdoc-to-markdown": "^1.3.7",
"jsdoc-to-markdown": "^2.0.0-alpha.8",
"rimraf": "^2.5.4",
"test-runner": "~0.1.11"
},
Expand Down
4 changes: 4 additions & 0 deletions test/explain.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ test('.explain: invalid doclet syntax', function () {
a.strictEqual(err.name, 'JSDOC_ERROR')
})
})

test('.explain({ files }): generate a warning', function () {
return jsdoc.explain({ files: 'test/fixture/buggy/ignore-with-value.js' })
})
5 changes: 5 additions & 0 deletions test/fixture/buggy/ignore-with-value.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* @ignore in favour of iOS' one
* A handle to an image picker popover.
*/
var CameraPopoverHandle = 1;

0 comments on commit ae3f5b3

Please sign in to comment.