Skip to content

Commit

Permalink
Remove unused function from testAppiumServer.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Jan 6, 2023
1 parent 019b395 commit 13eac3a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/src/service-builders/testAppiumServer.js
Expand Up @@ -77,22 +77,6 @@ describe('AppiumServer Transport Tests', function () {
mockery.registerMock('./httpclient.js', httpClient);
}

function mockExecutor(results) {
const {Executor, HttpClient} = require('selenium-webdriver/http');
class MockExecutor extends Executor {
async execute(command) {
return Promise.resolve(results);
}
}

deleteFromRequireCache('node_modules/selenium-webdriver/http');

mockery.registerMock('selenium-webdriver/http', {
Executor: MockExecutor,
HttpClient
});
}

function mockWebDriver({onSessionOpts = fn}) {
const SeleniumWebdriver = require('selenium-webdriver');
class MockWebDriver extends SeleniumWebdriver.WebDriver {
Expand Down

0 comments on commit 13eac3a

Please sign in to comment.