Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.

Commit

Permalink
Ignore branches in validateOptions in coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Aug 24, 2016
1 parent b344510 commit 5512142
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Expand Up @@ -70,18 +70,23 @@ load.read = function read(filename, options) {
};

load.validateOptions = function validateOptions(options) {
/* istanbul ignore if */
if (typeof options !== 'object') {
throw new TypeError('options must be an object');
}
/* istanbul ignore if */
if (typeof options.lex !== 'function') {
throw new TypeError('options.lex must be a function');
}
/* istanbul ignore if */
if (typeof options.parse !== 'function') {
throw new TypeError('options.parse must be a function');
}
/* istanbul ignore if */
if (options.resolve && typeof options.resolve !== 'function') {
throw new TypeError('options.resolve must be a function');
}
/* istanbul ignore if */
if (options.read && typeof options.read !== 'function') {
throw new TypeError('options.read must be a function');
}
Expand Down

0 comments on commit 5512142

Please sign in to comment.