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";
const addContext = require('mochawesome/addContext');
const addContext = require("mochawesome/addContext");
let driver: AppiumDriver;
@ -10,14 +10,14 @@ testReporterContext.log = addContext;
testReporterContext.logImageTypes = [LogImageType.screenshots];
nsCapabilities.testReporter = testReporterContext;
before("start server", async function(){
before("start server", async function () {
nsCapabilities.testReporter.context = this;
await startServer();
driver = await createDriver();
await driver.setDontKeepActivities(true);
});
after("stop server", async function(){
after("stop server", async function () {
nsCapabilities.testReporter.context = this;
await driver.setDontKeepActivities(false);
await driver.quit();

View File

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