mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
fix test path and eslint
This commit is contained in:
6
tests/node_modules/webdriverajaxstub/index.js
generated
vendored
6
tests/node_modules/webdriverajaxstub/index.js
generated
vendored
@@ -1,6 +1,6 @@
|
||||
function plugin (wdInstance, requests) {
|
||||
if (typeof wdInstance.addCommand !== 'function') {
|
||||
throw new Error('You can\'t use WebdriverAjaxStub with this version of WebdriverIO');
|
||||
if (typeof wdInstance.addCommand !== "function") {
|
||||
throw new Error("You can't use WebdriverAjaxStub with this version of WebdriverIO");
|
||||
}
|
||||
|
||||
function stub(requests, done) {
|
||||
@@ -25,7 +25,7 @@ function plugin (wdInstance, requests) {
|
||||
done();
|
||||
}
|
||||
|
||||
wdInstance.addCommand('setupStub', function() {
|
||||
wdInstance.addCommand("setupStub", function() {
|
||||
return wdInstance.executeAsync(stub, requests);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user