mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
fix: tests
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user