laxar-widget-service-mocks
Mock factories that help to tests widgets. These mocks are automatically provided in place of the regular LaxarJS widget services when using laxar-mocks for widget testing.
Contents
Module Members
- createAxAssetsMocks()
- createAxAreaHelperMock()
- createAxConfigurationMock()
- createAxEventBusMock()
- createAxFlowServiceMock()
- createAxGlobalStorageMock()
- createAxHeartbeatMock()
- createAxI18nMock()
- createAxLogMock()
- createAxStorageMock()
- createAxVisibilityMock()
Module Members
createAxAssetsMocks()
Returns a mock of the axAssets
injection for tests, to avoid making actual fetch
calls.
For details, see widget_services_assets_mock.
createAxAreaHelperMock()
Returns a mock of the axAreaHelper
injection for tests.
For details, see widget_services_area_helper_mock.
createAxConfigurationMock()
Returns a mock of the axConfiguration
injection for tests.
For details, see configuration_mock.
createAxEventBusMock()
Returns a mock of the axEventBus
injection for tests.
For details, see event_bus_mock.
createAxFlowServiceMock()
Returns a mock of the axFlowService
injection for tests.
For details, see flow_service_mock.
createAxGlobalStorageMock()
Returns a mock of the axGlobalStorage
injection for tests.
For details, see storage_mock.
createAxHeartbeatMock()
Returns a mock of the axHeartbeat
injection for tests.
For details, see heartbeat_mock.
createAxI18nMock()
Returns a mock of the axI18n
injection for tests.
For details, see i18n_mock.
createAxLogMock()
Returns a mock of the axLog
injection for tests.
For details, see log_mock.
createAxStorageMock()
Returns a mock of the axStorage
injection for tests.
For details, see widget_services_storage_mock.
createAxVisibilityMock()
Returns a mock of the axVisibility
injection for tests.
For details, see widget_services_visibility_mock.