mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 13:09:34 +00:00
commit
dc7093f68a
24
tests/global_vars/root_path.js
Normal file
24
tests/global_vars/root_path.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user