Skip to content

Commit 30f20d6

Browse files
committed
change varibale name from intest to mmTestMode
1 parent ee33350 commit 30f20d6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<script type="text/javascript">
2020
window.mmVersion = "#VERSION#";
21-
window.intest = "#TESTMODE#";
21+
window.mmTestMode = "#TESTMODE#";
2222
</script>
2323
</head>
2424
<body>

js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { getEnvVarsAsObj } = require(`${__dirname}/server_functions`);
1313

1414
// Get version number.
1515
global.version = require(`${__dirname}/../package.json`).version;
16-
global.intest = process.env.intest ? true : false;
16+
global.mmTestMode = process.env.mmTestMode === "true" ? true : false;
1717
Log.log(`Starting MagicMirror: v${global.version}`);
1818

1919
// Log system information.

js/server_functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function geExpectedReceivedHeaders (url) {
109109
function getHtml (req, res) {
110110
let html = fs.readFileSync(path.resolve(`${global.root_path}/index.html`), { encoding: "utf8" });
111111
html = html.replace("#VERSION#", global.version);
112-
html = html.replace("#TESTMODE#", global.intest);
112+
html = html.replace("#TESTMODE#", global.mmTestMode);
113113

114114
let configFile = "config/config.js";
115115
if (typeof global.configuration_file !== "undefined") {

tests/e2e/helpers/global-setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exports.startApplication = async (configFilename, exec) => {
2626
} else {
2727
process.env.MM_CONFIG_FILE = configFilename;
2828
}
29-
process.env.intest = true;
29+
process.env.mmTestMode = "true";
3030
if (exec) exec;
3131
global.app = require("../../../js/app");
3232

tests/electron/helpers/global-setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exports.startApplication = async (configFilename, systemDate = null, electronPar
1111
if (systemDate) {
1212
process.env.MOCK_DATE = systemDate;
1313
}
14-
process.env.intest = true;
14+
process.env.mmTestMode = "true";
1515

1616
global.electronApp = await electron.launch({ args: electronParams });
1717

0 commit comments

Comments
 (0)