detox
Version:
E2E tests and automation for mobile
42 lines (35 loc) • 952 B
JavaScript
/**
This code is generated.
For more information see generation/README.md.
*/
class DetoxGenymotionManager {
static setLocation(lat, lon) {
if (typeof lat !== "number") throw new Error("lat should be a number, but got " + (lat + (" (" + (typeof lat + ")"))));
if (typeof lon !== "number") throw new Error("lon should be a number, but got " + (lon + (" (" + (typeof lon + ")"))));
return {
target: {
type: "Class",
value: "com.wix.detox.genymotion.DetoxGenymotionManager"
},
method: "setLocation",
args: [{
type: "Double",
value: lat
}, {
type: "Double",
value: lon
}]
};
}
static getGenymotionManager() {
return {
target: {
type: "Class",
value: "com.wix.detox.genymotion.DetoxGenymotionManager"
},
method: "getGenymotionManager",
args: []
};
}
}
module.exports = DetoxGenymotionManager;