mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-12-12 01:42:19 +00:00
Release 2.33.0 (#3903)
This commit is contained in:
committed by
GitHub
parent
62b0f7f26e
commit
b0c5924019
@@ -1,4 +1,4 @@
|
||||
const { injectMockData } = require("../../utils/weather_mocker");
|
||||
const { injectMockData, cleanupMockData } = require("../../utils/weather_mocker");
|
||||
const helpers = require("./global-setup");
|
||||
|
||||
exports.getText = async (element, result) => {
|
||||
@@ -13,7 +13,12 @@ exports.getText = async (element, result) => {
|
||||
return true;
|
||||
};
|
||||
|
||||
exports.startApp = async (configFileName, additionalMockData) => {
|
||||
exports.startApplication = async (configFileName, additionalMockData) => {
|
||||
await helpers.startApplication(injectMockData(configFileName, additionalMockData));
|
||||
await helpers.getDocument();
|
||||
};
|
||||
|
||||
exports.stopApplication = async () => {
|
||||
await helpers.stopApplication();
|
||||
cleanupMockData();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user