Allows to instantiate a mock implementations of
AxVisibility, compatible to the "axVisibility"
widet service injection.
Creates a mock for the widget-specific "axVisibility" injection.
||an object with an
A mock version of
AxVisibility, the widget-specific "axVisibility" injection.
- spies on the regular methods,
- turns the update-methods into no-ops (but you can still inspect their spies),
- offers additional
mockHidemethods, which internally use the context (mock) event bus to allow testing features that involve
track/onShow/onHide/onChange/unsubscribe. If the (mock) event bus has a flush method, using
mockHidewill automatically flush.
Simulates the widget's containing area becoming visible. Flushes the underlying event bus mock as a side-effect.
Simulates the widget's containing area becoming hidden. Flushes the underlying event bus mock as a side-effect.