2014-10-10 18:54:07 +04:00
|
|
|
// # Helper Test Utils
|
|
|
|
//
|
|
|
|
// Contains shared code for intialising tests
|
|
|
|
//
|
|
|
|
// @TODO refactor this file out of existence
|
|
|
|
// I believe if we refactor the handlebars instances and helpers to be more self-contained and modular
|
|
|
|
// We can likely have init functions which replace the need for this file
|
|
|
|
|
2017-03-21 11:24:11 +03:00
|
|
|
var hbs = require('express-hbs'),
|
2014-10-10 18:54:07 +04:00
|
|
|
|
|
|
|
// Stuff we are testing
|
|
|
|
helpers = require('../../../server/helpers'),
|
2017-03-21 11:24:11 +03:00
|
|
|
utils = {};
|
2014-10-10 18:54:07 +04:00
|
|
|
|
|
|
|
utils.loadHelpers = function () {
|
|
|
|
var adminHbs = hbs.create();
|
|
|
|
helpers.loadCoreHelpers(adminHbs);
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = utils;
|