Comparing version 5.0.0 to 5.0.1
@@ -35,3 +35,3 @@ import { BuildInfoPluginManager } from "../plugins/build-info/build-info-plugin-manager"; | ||
*/ | ||
get and(): Verifier; | ||
get and(): this; | ||
/** | ||
@@ -53,3 +53,3 @@ * the starting point for setting up a {Verifier} execution. Generally it is preferred | ||
*/ | ||
verify(assertion: Func<Verifier, any>): Verifier; | ||
verify(assertion: Func<Verifier, any>): this; | ||
/** | ||
@@ -61,3 +61,3 @@ * allows for setting the `description` to be used as the `logName` in any | ||
*/ | ||
withDescription(description: string): Verifier; | ||
withDescription(description: string): this; | ||
/** | ||
@@ -73,3 +73,3 @@ * allows for setting a `testId` to be checked before executing the `assertion` | ||
*/ | ||
withTestId(testId: string): Verifier; | ||
withTestId(testId: string): this; | ||
/** | ||
@@ -81,3 +81,3 @@ * allows for setting a `defectId` to be checked before executing the `assertion`. | ||
*/ | ||
withKnownDefectId(defectId: string): Verifier; | ||
withKnownDefectId(defectId: string): this; | ||
/** | ||
@@ -91,3 +91,3 @@ * allows for specifying either the expected return value or a {VerifierMatcher} | ||
*/ | ||
returns(result: any | VerifierMatcher): Verifier; | ||
returns(result: any | VerifierMatcher): this; | ||
/** | ||
@@ -99,3 +99,3 @@ * allows for using a specific {LoggingPluginManager} instance. if not | ||
*/ | ||
withLoggingPluginManager(logMgr: LoggingPluginManager): Verifier; | ||
withLoggingPluginManager(logMgr: LoggingPluginManager): this; | ||
/** | ||
@@ -107,3 +107,3 @@ * allows for using a specific {TestCasePluginManager} instance. if not | ||
*/ | ||
withTestCasePluginManager(testMgr: TestCasePluginManager): Verifier; | ||
withTestCasePluginManager(testMgr: TestCasePluginManager): this; | ||
/** | ||
@@ -115,3 +115,3 @@ * allows for using a specific {DefectPluginManager} instance. if not | ||
*/ | ||
withDefectPluginManager(defectMgr: DefectPluginManager): Verifier; | ||
withDefectPluginManager(defectMgr: DefectPluginManager): this; | ||
/** | ||
@@ -123,3 +123,3 @@ * allows for using a specific {BuildInfoPluginManager} instance. if not | ||
*/ | ||
withBuildInfoPluginManager(buildMgr: BuildInfoPluginManager): Verifier; | ||
withBuildInfoPluginManager(buildMgr: BuildInfoPluginManager): this; | ||
protected _shouldRun_tests(...tests: string[]): Promise<ProcessingResult>; | ||
@@ -126,0 +126,0 @@ protected _shouldRun_defects(...defects: string[]): Promise<ProcessingResult>; |
{ | ||
"name": "aft-core", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Automation Framework for Testing (AFT) package supporting JavaScript unit, integration and functional testing", | ||
@@ -47,3 +47,3 @@ "repository": { | ||
}, | ||
"gitHead": "daa8db59af0188cea7f1e1af1b3900b4f9cf185e" | ||
"gitHead": "a0ff18600383bfbee442c3fbb6dd1d1401339882" | ||
} |
@@ -98,3 +98,3 @@ import { BuildInfoPluginManager } from "../plugins/build-info/build-info-plugin-manager"; | ||
*/ | ||
get and(): Verifier { | ||
get and(): this { | ||
return this; | ||
@@ -119,3 +119,3 @@ } | ||
*/ | ||
verify(assertion: Func<Verifier, any>): Verifier { | ||
verify(assertion: Func<Verifier, any>): this { | ||
this._assertion = assertion; | ||
@@ -131,3 +131,3 @@ return this; | ||
*/ | ||
withDescription(description: string): Verifier { | ||
withDescription(description: string): this { | ||
this._description = description; | ||
@@ -147,3 +147,3 @@ return this; | ||
*/ | ||
withTestId(testId: string): Verifier { | ||
withTestId(testId: string): this { | ||
if (testId) { | ||
@@ -161,3 +161,3 @@ this._tests.add(testId); | ||
*/ | ||
withKnownDefectId(defectId: string): Verifier { | ||
withKnownDefectId(defectId: string): this { | ||
if (defectId) { | ||
@@ -177,3 +177,3 @@ this._defects.add(defectId); | ||
*/ | ||
returns(result: any | VerifierMatcher): Verifier { | ||
returns(result: any | VerifierMatcher): this { | ||
if (result['compare'] && result['setActual'] && result['failureString']) { | ||
@@ -193,3 +193,3 @@ this._matcher = result; | ||
*/ | ||
withLoggingPluginManager(logMgr: LoggingPluginManager): Verifier { | ||
withLoggingPluginManager(logMgr: LoggingPluginManager): this { | ||
this._logMgr = logMgr; | ||
@@ -205,3 +205,3 @@ return this; | ||
*/ | ||
withTestCasePluginManager(testMgr: TestCasePluginManager): Verifier { | ||
withTestCasePluginManager(testMgr: TestCasePluginManager): this { | ||
this._testMgr = testMgr; | ||
@@ -217,3 +217,3 @@ return this; | ||
*/ | ||
withDefectPluginManager(defectMgr: DefectPluginManager): Verifier { | ||
withDefectPluginManager(defectMgr: DefectPluginManager): this { | ||
this._defectMgr = defectMgr; | ||
@@ -229,3 +229,3 @@ return this; | ||
*/ | ||
withBuildInfoPluginManager(buildMgr: BuildInfoPluginManager): Verifier { | ||
withBuildInfoPluginManager(buildMgr: BuildInfoPluginManager): this { | ||
this._buildMgr = buildMgr; | ||
@@ -232,0 +232,0 @@ return this; |
Sorry, the diff of this file is not supported yet
774007