new ChainedTemplateScenario(sequence:, uri:, options:)
Parameters:
| Name | Type | Description |
|---|---|---|
sequence: |
Object | {init: {Object}, body: {Object}, close: {Object}} object containing the dataset of the tests to run. Each nested object must contain |
uri: |
Objet | an object containing the URI information of the routes to tests, structured as { |
options: |
Objet | an object containing the options of the routes to tests, structured as { |
- Source:
Extends
Methods
-
run()
-
Run a test an generate a result
- Overrides:
- Source:
Returns:
promise wrapping an Object which format must be the same as the input of the check() method
- Type
- Promise
-
validate()
-
Tests whether the output of a TestScenario is valid or not
- Inherited From:
- Source:
Returns:
wrapping an Object {valid: {boolean}, result: {any}}
- Type
- Promise