Mocking Observables in JavaScript Tests

There are different ways to test components that involve Observables. You might come across tests that are not written properly. These tests are sometimes only green accidentally...