While writing angular unit test for routing, is it okay to navigate with real values or we should use fakeAsync for router navigations?
Option 1
it('navigate to "home" takes you to /home', fakeAsync(() => {
router.navigate(['home']);
tick();
expect(location.path()).toBe('/home');
}));
Option 2
it('navigate to "home" takes you to /home', () => {
router.navigate(['home']).then(() => {
expect(location.path()).toBe('/home');
});
});