Tests one-var

This commit is contained in:
Amine Ben hammou
2017-09-26 12:57:13 +00:00
parent 651c9f5692
commit 69c540288b
19 changed files with 187 additions and 158 deletions

View File

@ -1,8 +1,8 @@
var fs = require('fs');
module.exports = {
loadFileToContainer: function (path, window, containerTagName, opts) {
var contents = fs.readFileSync(path),
container = window.document.createElement(containerTagName);
var contents = fs.readFileSync(path);
var container = window.document.createElement(containerTagName);
var options = opts || {};
container.innerHTML = contents;