mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
Merge pull request #1033 from roramirez/one-instance-all-module-position-spec
Refactor modules_position_spec use one instance for all it statements
This commit is contained in:
commit
931055708d
@ -14,21 +14,19 @@ describe("Position of modules", function () {
|
|||||||
|
|
||||||
var app = null;
|
var app = null;
|
||||||
|
|
||||||
beforeEach(function () {
|
|
||||||
return helpers.startApplication({
|
|
||||||
args: ["js/electron.js"]
|
|
||||||
}).then(function (startedApp) { app = startedApp; })
|
|
||||||
});
|
|
||||||
|
|
||||||
afterEach(function () {
|
|
||||||
return helpers.stopApplication(app);
|
|
||||||
});
|
|
||||||
|
|
||||||
describe("Using helloworld", function () {
|
describe("Using helloworld", function () {
|
||||||
|
|
||||||
|
after(function () {
|
||||||
|
return helpers.stopApplication(app);
|
||||||
|
});
|
||||||
|
|
||||||
before(function () {
|
before(function () {
|
||||||
// Set config sample for use in test
|
// Set config sample for use in test
|
||||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/positions.js";
|
process.env.MM_CONFIG_FILE = "tests/configs/modules/positions.js";
|
||||||
|
return helpers.startApplication({
|
||||||
|
args: ["js/electron.js"]
|
||||||
|
}).then(function (startedApp) { app = startedApp; })
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var positions = ["top_bar", "top_left", "top_center", "top_right", "upper_third",
|
var positions = ["top_bar", "top_left", "top_center", "top_right", "upper_third",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user