Page Contents
Home > @loopback/core > Application > assertInStates
Application.assertInStates() method
Assert current state of the application to be one of the expected values
Signature:
protected assertInStates(op: string, ...states: string[]): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
|
op |
string |
The operation name, such as ‘boot’, ‘start’, or ‘stop’ |
|
states |
string[] |
Valid states |
Returns:
void