fix: tests

This commit is contained in:
Barış Soner Uşaklı
2020-10-14 20:02:32 -04:00
parent d89477cad0
commit b295d15eae
2 changed files with 3 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ var os = require('os');
var nconf = require('nconf');
var express = require('express');
var app = express();
app.renderAsync = util.promisify((tpl, data, callback) => app.render(tpl, data, callback));
var server;
var winston = require('winston');
var async = require('async');
@@ -116,8 +117,6 @@ function setupExpressApp(app) {
const relativePath = nconf.get('relative_path');
const viewsDir = nconf.get('views_dir');
app.renderAsync = util.promisify((tpl, data, callback) => app.render(tpl, data, callback));
app.engine('tpl', function (filepath, data, next) {
filepath = filepath.replace(/\.tpl$/, '.js');