widget_services_storage_mock
Allows to instantiate a mock implementations of AxStorage
, compatible to the "axStorage" injection.
Contents
Module Members
Types
Module Members
create()
Creates a mock for the axStorage
injection of a widget.
Returns
Type | Description |
---|---|
AxStorageMock |
a mock of axStorage that can be spied and/or mocked with additional items |
Types
AxStorageMock
extends
AxStorage
The AxStorageMock provides the same API as AxStorage, with the additional property
#mockBackends
to inspect and/or simulate mock values in the storage backend.
AxStorageMock.mockBackends undefined
Provides access to the backing stores for local
and session
storage.
Contains local
and session
store properties. The stores are plain objects whose properties
reflect any setItem/removeItem operations. When properties are set on a store, they are observed
by getItem
calls on the corresponding axStorage API.