Fix eslint errors in newsletter tests helper files

[MAILPOET-3752]
This commit is contained in:
Rostislav Wolny
2021-10-08 12:35:54 +02:00
committed by Veljko V
parent d6cdbc844d
commit a5272d58e7
2 changed files with 19 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
var fs = require('fs');
module.exports = {
loadFileToContainer: function (path, window, containerTagName, opts) {
loadFileToContainer: function loadFileToContainer(path, window, containerTagName, opts) {
var contents = fs.readFileSync(path);
var container = window.document.createElement(containerTagName);
var options = opts || {};
@@ -14,10 +14,10 @@ module.exports = {
}
global.window.document.body.appendChild(container);
},
loadScript: function (scriptPath, window, options) {
loadScript: function loadScript(scriptPath, window, options) {
this.loadFileToContainer(scriptPath, window, 'script', options);
},
loadTemplate: function (path, window, opts) {
loadTemplate: function loadTemplate(path, window, opts) {
var w = window || global.window;
var options = opts || {};
options.type = 'text/x-handlebars-template';