Namespace: tests

apy. tests

One place for common UT snippets

Mocking Main library components

Classes

HelperTypesFactory
NetMock

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

Type
apy.components.fields

createSchemasComponent()

Create an apy.components.Schemas instance

Returns:

A Schemas instance

Type
apy.components.Schemas

createService(settings)

Create an apy.CompositeService instance

Parameters:
Name Type Description
settings Object

Global application configuration object

Returns:

A CompositeService instance

Type
apy.CompositeService