mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
chore: fix tslint
This commit is contained in:
@ -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();
|
||||
|
@ -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";
|
||||
|
Reference in New Issue
Block a user