mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 15:25:09 +00:00
16 lines
365 B
JavaScript
16 lines
365 B
JavaScript
module.exports = Nightwatch;
|
|
|
|
function Nightwatch(nightwatch, runner, test_settings) {
|
|
this._instance = null;
|
|
|
|
test_settings.output = false;
|
|
this._instance = nightwatch.initClient(test_settings);
|
|
|
|
this._instance.on('error', function(err) {
|
|
runner.failOnError(err);
|
|
}.bind(this));
|
|
}
|
|
|
|
Nightwatch.prototype.get = function() {
|
|
return this._instance;
|
|
};
|