mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
test setup
This commit is contained in:
parent
fa8e398e90
commit
baa3c1461c
26
tests/e2e/modules/weather_spec.js
Normal file
26
tests/e2e/modules/weather_spec.js
Normal file
@ -0,0 +1,26 @@
|
||||
const fs = require("fs");
|
||||
const _ = require("lodash");
|
||||
const moment = require("moment");
|
||||
const wdajaxstub = require("webdriverajaxstub");
|
||||
|
||||
const helpers = require("../global-setup");
|
||||
|
||||
describe("Weather module", function() {
|
||||
let app;
|
||||
|
||||
helpers.setupTimeout(this);
|
||||
|
||||
async function setup(responses) {
|
||||
app = await helpers.startApplication({
|
||||
args: ["js/electron.js"]
|
||||
});
|
||||
|
||||
wdajaxstub.init(app.client, responses);
|
||||
|
||||
app.client.setupStub();
|
||||
}
|
||||
|
||||
afterEach(function() {
|
||||
return helpers.stopApplication(app);
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user