Constructor
new ServiceTester(attrs)
Service Tester Constructor
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
attrs |
object | Refer to individual attrs Properties
|
Methods
beforeEach()
Invoked before each test. This is a stub which can be overridden on instances.
create(msg) → {module:icedfrisby~IcedFrisby}
Create a new test. The hard work is delegated to IcedFrisby. https://github.com/MarkHerhold/IcedFrisby/#show-me-some-code
Note: The caller should not invoke toss() on the Frisby chain, as it's invoked automatically by the tester.
Parameters:
Name | Type | Description |
---|---|---|
msg |
string | The name of the test |
Returns:
IcedFrisby instance
- Type
- module:icedfrisby~IcedFrisby
only()
Run only this tester. This can be invoked using the --only argument to the CLI, or directly on the tester.
toss(attrs)
Register the tests with Mocha.
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
attrs |
object | Refer to individual attrs Properties
|
(static) forServiceClass(ServiceClass) → {module:core/service-test-runner/service-tester~ServiceTester}
Construct a ServiceTester instance for a single service class
Parameters:
Name | Type | Description |
---|---|---|
ServiceClass |
function | A class that extends base-service/base.BaseService |
Returns:
ServiceTester for ServiceClass