25 lines
539 B
JavaScript
Raw Normal View History

2017-01-24 12:22:43 +01:00
var fs = require("fs");
var path = require("path");
var chai = require("chai");
var expect = chai.expect;
var appMM = require("../../js/app.js")
describe("Test global.root_path, set in js/app.js", function() {
var expectedSubPaths = [
'modules',
'serveronly',
'js',
'js/app.js',
'js/main.js',
'js/electron.js',
'config'
];
expectedSubPaths.forEach(subpath => {
it(`should contain a file/folder "${subpath}"`, function() {
expect(fs.existsSync(path.join(global.root_path, subpath))).to.equal(true);
});
});
});