Skip to content

Commit

Permalink
Increase code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Aug 2, 2015
1 parent f3e8b18 commit efddc3c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/handlebars/compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Compiler.prototype = {
};
if (knownHelpers) {
for (let name in knownHelpers) {
/* istanbul ignore else */
if (name in knownHelpers) {
options.knownHelpers[name] = knownHelpers[name];
}
Expand Down
1 change: 1 addition & 0 deletions lib/handlebars/exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function Exception(message, node) {
this[errorProps[idx]] = tmp[errorProps[idx]];
}

/* istanbul ignore else */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, Exception);
}
Expand Down
8 changes: 4 additions & 4 deletions lib/handlebars/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export let toString = Object.prototype.toString;

// Sourced from lodash
// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt
/*eslint-disable func-style, no-var */
var isFunction = function(value) {
/*eslint-disable func-style */
let isFunction = function(value) {
return typeof value === 'function';
};
// fallback for older versions of Chrome and Safari
Expand All @@ -41,8 +41,8 @@ if (isFunction(/x/)) {
return typeof value === 'function' && toString.call(value) === '[object Function]';
};
}
export var isFunction;
/*eslint-enable func-style, no-var */
export {isFunction};
/*eslint-enable func-style */

/* istanbul ignore next */
export const isArray = Array.isArray || function(value) {
Expand Down
3 changes: 2 additions & 1 deletion src/parser-suffix.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export default handlebars;
exports.__esModule = true;
module.exports['default'] = handlebars;

0 comments on commit efddc3c

Please sign in to comment.