External module "api/assertions"
Functions
deleteResultAccumulator
- deleteResultAccumulator(name: string): void
-
Parameters
Returns void
equal
- equal(val1: any, val2: any, msg1: string, msg2: string, doNotShowValues?: undefined | false | true, mode?: AssertionMode): boolean
-
Parameters
-
val1: any
-
val2: any
-
msg1: string
-
msg2: string
-
Optional doNotShowValues: undefined | false | true
-
Returns boolean
equalBool
- equalBool(val1: any, val2: any, msg1: string, msg2: string, doNotShowValues: boolean, mode?: AssertionMode): boolean
-
Parameters
-
val1: any
-
val2: any
-
msg1: string
-
msg2: string
-
doNotShowValues: boolean
-
Returns boolean
exception
- exception(func: Function, expExc?: undefined | string, mode?: AssertionMode): boolean
-
Parameters
-
func: Function
-
Optional expExc: undefined | string
-
Returns boolean
exceptionAsync
- exceptionAsync(asyncFunc: Function, expExc?: undefined | string, mode?: AssertionMode): any
-
Parameters
-
asyncFunc: Function
-
Optional expExc: undefined | string
-
Returns any
getResultFromAccumulator
- getResultFromAccumulator(name: string): boolean
-
Parameters
Returns boolean
initResultsAccumulator
- initResultsAccumulator(name: string): void
-
Parameters
Returns void
mergeResultToAccumulator
- mergeResultToAccumulator(res: boolean, name: string): void
-
Parameters
-
res: boolean
-
name: string
Returns void
notEqualBool
- notEqualBool(val1: any, val2: any, msg1: string, msg2: string, doNotShowValues: boolean, mode?: AssertionMode): boolean
-
Parameters
-
val1: any
-
val2: any
-
msg1: string
-
msg2: string
-
doNotShowValues: boolean
-
Returns boolean
value
- value(actVal: any, expVal: any, msg: string, mode?: AssertionMode): boolean
-
Parameters
-
actVal: any
-
expVal: any
-
msg: string
-
Returns boolean
comparision result.
valueBool
- valueBool(actVal: any, expVal: any, msg: string, mode?: AssertionMode): boolean
-
Parameters
-
actVal: any
-
expVal: any
-
msg: string
-
Returns boolean
comparision result.
valueDeep
- valueDeep(actVal: any, expVal: any, msg: string, mode?: AssertionMode): boolean
-
Parameters
-
actVal: any
-
expVal: any
-
msg: string
-
Returns boolean
valueNumber
- valueNumber(actVal: any, expVal: any, msg: string, mode?: AssertionMode): boolean
-
Parameters
-
actVal: any
-
expVal: any
-
msg: string
-
Returns boolean
comparision result.
valueStr
- valueStr(actVal: any, expVal: any, msg: string, mode?: AssertionMode): boolean
-
Parameters
-
actVal: any
-
expVal: any
-
msg: string
-
Returns boolean
comparision result.
Test description. gT.a