Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe('UiAutomator2', function () {
const adb = new ADB();
describe('installServerApk', withMocks({adb, helpers}, (mocks) => {
let uiautomator2;
beforeEach(function () {
uiautomator2 = new UiAutomator2Server({
adb, tmpDir: 'tmp', systemPort: 4724,
host: 'localhost', devicePort: 6790, disableWindowAnimation: false
});
});
afterEach(function () {
mocks.verify();
});
it('new server and server.test are older than installed version', async function () {
mocks.helpers.expects('isWriteable').atLeast(1)
.returns(true);
beforeEach(function () {
driver = new AndroidUiautomator2Driver({}, false);
driver.adb = new ADB();
driver.caps = {};
sandbox.stub(driver.adb, 'stopLogcat');
});
afterEach(function () {