chore: fix tslint

This commit is contained in:
SvetoslavTsenov
2019-05-06 13:33:26 +03:00
parent 29ad64576c
commit a7bfabcaec
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import { AppiumDriver, createDriver, startServer, stopServer, LogImageType, ITestReporter, nsCapabilities } from "nativescript-dev-appium"; import { AppiumDriver, createDriver, startServer, stopServer, LogImageType, ITestReporter, nsCapabilities } from "nativescript-dev-appium";
const addContext = require('mochawesome/addContext'); const addContext = require("mochawesome/addContext");
let driver: AppiumDriver; let driver: AppiumDriver;
@ -10,14 +10,14 @@ testReporterContext.log = addContext;
testReporterContext.logImageTypes = [LogImageType.screenshots]; testReporterContext.logImageTypes = [LogImageType.screenshots];
nsCapabilities.testReporter = testReporterContext; nsCapabilities.testReporter = testReporterContext;
before("start server", async function(){ before("start server", async function () {
nsCapabilities.testReporter.context = this; nsCapabilities.testReporter.context = this;
await startServer(); await startServer();
driver = await createDriver(); driver = await createDriver();
await driver.setDontKeepActivities(true); await driver.setDontKeepActivities(true);
}); });
after("stop server", async function(){ after("stop server", async function () {
nsCapabilities.testReporter.context = this; nsCapabilities.testReporter.context = this;
await driver.setDontKeepActivities(false); await driver.setDontKeepActivities(false);
await driver.quit(); await driver.quit();

View File

@ -1,5 +1,5 @@
import { startServer, stopServer, nsCapabilities, ITestReporter, LogImageType } from "nativescript-dev-appium"; import { startServer, stopServer, nsCapabilities, ITestReporter, LogImageType } from "nativescript-dev-appium";
const addContext = require('mochawesome/addContext'); const addContext = require("mochawesome/addContext");
const testReporterContext = <ITestReporter>{}; const testReporterContext = <ITestReporter>{};
testReporterContext.name = "mochawesome"; testReporterContext.name = "mochawesome";