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";
|
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();
|
||||||
|
@ -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";
|
||||||
|
Reference in New Issue
Block a user