File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"preset" : " node-style-guide" ,
3
+ "requireCapitalizedComments" : null ,
3
4
"excludeFiles" : [" node_modules/**" , " coverage/**" , " jsdoc/**" ]
4
5
}
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ var swaggerTools = require('swagger-tools');
20
20
function parseApiFile ( file ) {
21
21
var fileExtension = path . extname ( file ) ;
22
22
23
+ /* istanbul ignore if */
23
24
if ( fileExtension !== '.js' ) {
24
25
throw new Error ( 'Unsupported extension \'' + fileExtension + '\'.' ) ;
25
26
}
@@ -95,11 +96,12 @@ module.exports.swaggerObject = [];
95
96
* @requires swagger-tools
96
97
*/
97
98
module . exports . init = function ( app , options ) {
99
+ /* istanbul ignore if */
98
100
if ( ! options ) {
99
101
throw new Error ( '\'options\' is required.' ) ;
100
- } else if ( ! options . swaggerDefinition ) {
102
+ } else /* istanbul ignore if */ if ( ! options . swaggerDefinition ) {
101
103
throw new Error ( '\'swaggerDefinition\' is required.' ) ;
102
- } else if ( ! options . apis ) {
104
+ } else /* istanbul ignore if */ if ( ! options . apis ) {
103
105
throw new Error ( '\'apis\' is required.' ) ;
104
106
}
105
107
You can’t perform that action at this time.
0 commit comments