summaryrefslogtreecommitdiffstats
path: root/spec/env/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/env/node.js')
-rw-r--r--spec/env/node.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/env/node.js b/spec/env/node.js
index d7db853..62d9fe9 100644
--- a/spec/env/node.js
+++ b/spec/env/node.js
@@ -1,4 +1,3 @@
-/*global handlebarsEnv */
require('./common');
global.Handlebars = require('../../lib');
@@ -14,10 +13,12 @@ global.CompilerContext = {
};
function safeEval(templateSpec) {
+ /*eslint-disable no-eval, no-console */
try {
return eval('(' + templateSpec + ')');
} catch (err) {
console.error(templateSpec);
throw err;
}
+ /*eslint-enable no-eval, no-console */
}