Fix all tslint errors

This commit is contained in:
Rossen Hristov
2017-01-06 12:00:06 +02:00
parent bfab188ba0
commit eb4ac8d109
5 changed files with 9 additions and 17 deletions

View File

@@ -59,17 +59,17 @@ var runTest = function (testInfo: TestInfoEntry) {
}
if (testInfo.isTest) {
duration = (time() - start).toFixed(2);
duration = time() - start;
testInfo.duration = duration;
write(`--- [${testInfo.testName}] OK, duration: ${duration}`, trace.messageType.info);
write(`--- [${testInfo.testName}] OK, duration: ${duration.toFixed(2)}`, trace.messageType.info);
testInfo.isPassed = true;
}
}
catch (e) {
if (testInfo.isTest) {
duration = (time() - start).toFixed(2);
duration = time() - start;
testInfo.duration = duration;
write(`--- [${testInfo.testName}] FAILED: ${e.message}, Stack: ${e.stack}, duration: ${duration}`, trace.messageType.error);
write(`--- [${testInfo.testName}] FAILED: ${e.message}, Stack: ${e.stack}, duration: ${duration.toFixed(2)}`, trace.messageType.error);
testInfo.isPassed = false;
testInfo.errorMessage = e.message;
}

View File

@@ -20,8 +20,6 @@ import {isIOS} from "platform";
import {Label} from "ui/label";
import {LayoutBase} from "ui/layouts/layout-base";
import * as helper from "../helper";
import * as viewModule from "ui/core/view";
import {Page} from "ui/page";
export class LabelTest extends testModule.UITest<LabelModule.Label> {