Increase code coverage

This commit is contained in:
kpdecker
2015-08-01 21:47:13 -05:00
parent f3e8b18925
commit efddc3c09c
4 changed files with 8 additions and 5 deletions
+1
View File
@@ -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];
}
+1
View File
@@ -19,6 +19,7 @@ function Exception(message, node) {
this[errorProps[idx]] = tmp[errorProps[idx]];
}
/* istanbul ignore else */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, Exception);
}
+4 -4
View File
@@ -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
@@ -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) {
+2 -1
View File
@@ -1 +1,2 @@
export default handlebars;
exports.__esModule = true;
module.exports['default'] = handlebars;