Lint and update JS sample code (#11927)

* Lint and update JS wd sample code

* Lint and update JS webdriverio sample code

* Add JS sample code to greenkeeper
This commit is contained in:
Isaac A. Murchie
2019-01-03 09:40:53 -05:00
committed by GitHub
parent 844094a7bb
commit e0c4106d22
21 changed files with 124 additions and 86 deletions

View File

@@ -5,19 +5,21 @@ const assert = require("chai").assert;
androidOptions.capabilities.app = app;
describe("Create Android session", function() {
describe("Create Android session", function () {
let client;
before(async() => {
before(async function () {
client = await webdriverio.remote(androidOptions);
});
it("should create and destroy a session", async function() {
const res = await client.status();
assert.isObject(res.build);
const current_package = await client.getCurrentPackage();
assert.equal(current_package, "io.appium.android.apis");
const delete_session = await client.deleteSession();
assert.isNull(delete_session);
it("should create and destroy a session", async function () {
const res = await client.status();
assert.isObject(res.build);
const current_package = await client.getCurrentPackage();
assert.equal(current_package, "io.appium.android.apis");
const delete_session = await client.deleteSession();
assert.isNull(delete_session);
});
});