mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
feat: #7743 meta/templates.js
This commit is contained in:
@@ -103,14 +103,14 @@ describe('Controllers', function () {
|
||||
var name = 'custom.tpl';
|
||||
var tplPath = path.join(nconf.get('views_dir'), name);
|
||||
|
||||
before(function (done) {
|
||||
before(async () => {
|
||||
plugins.registerHook('myTestPlugin', {
|
||||
hook: 'action:homepage.get:custom',
|
||||
method: hookMethod,
|
||||
});
|
||||
|
||||
fs.writeFileSync(tplPath, message);
|
||||
meta.templates.compileTemplate(name, message, done);
|
||||
await meta.templates.compileTemplate(name, message);
|
||||
});
|
||||
|
||||
it('should load default', function (done) {
|
||||
|
||||
Reference in New Issue
Block a user