Skip to content

Commit efddc3c

Browse files
committed
Increase code coverage
1 parent f3e8b18 commit efddc3c

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

lib/handlebars/compiler/compiler.js

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Compiler.prototype = {
6666
};
6767
if (knownHelpers) {
6868
for (let name in knownHelpers) {
69+
/* istanbul ignore else */
6970
if (name in knownHelpers) {
7071
options.knownHelpers[name] = knownHelpers[name];
7172
}

lib/handlebars/exception.js

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function Exception(message, node) {
1919
this[errorProps[idx]] = tmp[errorProps[idx]];
2020
}
2121

22+
/* istanbul ignore else */
2223
if (Error.captureStackTrace) {
2324
Error.captureStackTrace(this, Exception);
2425
}

lib/handlebars/utils.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export let toString = Object.prototype.toString;
3030

3131
// Sourced from lodash
3232
// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt
33-
/*eslint-disable func-style, no-var */
34-
var isFunction = function(value) {
33+
/*eslint-disable func-style */
34+
let isFunction = function(value) {
3535
return typeof value === 'function';
3636
};
3737
// fallback for older versions of Chrome and Safari
@@ -41,8 +41,8 @@ if (isFunction(/x/)) {
4141
return typeof value === 'function' && toString.call(value) === '[object Function]';
4242
};
4343
}
44-
export var isFunction;
45-
/*eslint-enable func-style, no-var */
44+
export {isFunction};
45+
/*eslint-enable func-style */
4646

4747
/* istanbul ignore next */
4848
export const isArray = Array.isArray || function(value) {

src/parser-suffix.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export default handlebars;
1+
exports.__esModule = true;
2+
module.exports['default'] = handlebars;

0 commit comments

Comments
 (0)