https://www.digitalocean.com/community/tutorials/angular-testing-async-fakeasync
How To Use waitForAsync and fakeAsync with Angular Testing | DigitalOcean
Learn how to test asynchronous code more easily using the async and fakeAsync utilities for Angular 2+.
how to useangulartestingdigitalocean