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