One place for common UT snippets
Mocking Main library components
Classes
Methods
-
createFieldByType(type, value, schema, config, states)
-
Create any Field instance based on given type
Parameters:
Name Type Description type
string Field's type
value
* Field's value
schema
Object Field's schema object
config
Object Global application configuration object
states
apy.helpers.StateHolder StateHolder object
Returns:
Any Field instance
-
createSchemasComponent()
-
Create an
apy.components.Schemas
instanceReturns:
A Schemas instance
-
createService(settings)
-
Create an
apy.CompositeService
instanceParameters:
Name Type Description settings
Object Global application configuration object
Returns:
A CompositeService instance
- Type
- apy.CompositeService