mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
26 lines
541 B
JavaScript
26 lines
541 B
JavaScript
var fs = require("fs");
|
|
var path = require("path");
|
|
var chai = require("chai");
|
|
var expect = chai.expect;
|
|
|
|
describe("Test global.root_path, set in js/app.js", function() {
|
|
var appMM = require("../../js/app.js")
|
|
|
|
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);
|
|
});
|
|
});
|
|
});
|
|
|