fix test path and eslint

This commit is contained in:
Felix Wiedenbach
2019-09-11 15:58:51 +02:00
parent 55eb6e2e5c
commit aad03a74c5
6 changed files with 491 additions and 714 deletions

View File

@@ -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);
});
}