Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getDriverAndFakeDriver () {
const appium = new AppiumDriver({});
const fakeDriver = new FakeDriver();
const mockFakeDriver = sinon.mock(fakeDriver);
appium.getDriverAndVersionForCaps = function (/*args*/) {
return {
driver: function Driver () {
return fakeDriver;
},
version: '1.2.3',
};
};
return [appium, mockFakeDriver];
}
describe('createSession', function () {