Methods
(static) array(arg) → {Array}
Converts the argument to an array.
Parameters:
Name | Type | Description |
---|---|---|
arg |
String | Argument from the unit test specification |
Returns:
- Type
- Array
(static) bool(arg) → {Boolean}
Converts the argument to a boolean value.
Parameters:
Name | Type | Description |
---|---|---|
arg |
String | Argument from the unit test specification |
Returns:
- Type
- Boolean
(static) convert(arg, type) → {String|Number|Boolean|Array.<any>|undefined|null|NaN}
Attempts to convert the argument to the given type
Parameters:
Name | Type | Description |
---|---|---|
arg |
String | Argument to convert |
type |
String | The type to convert to |
Returns:
- Type
- String | Number | Boolean | Array.<any> | undefined | null | NaN
(static) int(arg) → {Number}
Converts the argument to an integer.
Parameters:
Name | Type | Description |
---|---|---|
arg |
String | Argument from the unit test specification |
Returns:
- Type
- Number
(static) modify()
Checks that a custom object map has been provided and attempts to add it to typeMappings as a mixin.
(static) NaN(arg) → {NaN}
Returns NaN.
Parameters:
Name | Type | Description |
---|---|---|
arg |
String | Argument from the unit test specification |
Returns:
- Type
- NaN
(static) null(arg) → {null}
Returns null.
Parameters:
Name | Type | Description |
---|---|---|
arg |
String | Argument from the unit test specification |
Returns:
- Type
- null
(static) number(arg) → {Number}
Converts the argument to a number.
Parameters:
Name | Type | Description |
---|---|---|
arg |
String | Argument from the unit test specification |
Returns:
- Type
- Number
(static) string(arg) → {String}
Converts the argument to a string. Arguments are a string by default.
Parameters:
Name | Type | Description |
---|---|---|
arg |
String | Argument from the unit test specification |
Returns:
- Type
- String
(static) undefined(arg) → {undefined}
Returns undefined.
Parameters:
Name | Type | Description |
---|---|---|
arg |
String | Argument from the unit test specification |
Returns:
- Type
- undefined