mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
35 lines
682 B
JavaScript
35 lines
682 B
JavaScript
/*
|
|
* Magic Mirror
|
|
*
|
|
* Global Setup Test Suite
|
|
*
|
|
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
|
|
* MIT Licensed.
|
|
*
|
|
*/
|
|
|
|
const Application = require("spectron").Application;
|
|
const path = require("path");
|
|
const chai = require("chai");
|
|
const chaiAsPromised = require("chai-as-promised");
|
|
|
|
var electronPath = path.join(__dirname, "../../", "node_modules", ".bin", "electron");
|
|
|
|
if (process.platform === "win32") {
|
|
electronPath += ".cmd";
|
|
}
|
|
|
|
var appPath = path.join(__dirname, "../../js/electron.js");
|
|
|
|
var app = new Application({
|
|
path: electronPath,
|
|
args: [appPath]
|
|
});
|
|
|
|
global.before(function () {
|
|
chai.should();
|
|
chai.use(chaiAsPromised);
|
|
});
|
|
|
|
exports.app = app;
|