In certain cases, the default implementation provided by the service might not answer the needs of your code. One such case is testing.
When testing, we sometimes need to simulate the internal workings of the native window
object.
Assuming you injected WindowRef
into your component or service: