DEV Community

Discussion on: Angular Components Unit Test – Common Use Cases

Collapse
 
rebaiahmed profile image
Ahmed Rebai

I have a question about the purpose of tick(); ?

Collapse
 
nicholaalkhouri profile image
Nichola Alkhouri

tick is just a simulation of passage of time, for example you can use tick(2000) to simulate a passing of 2 seconds you can check more about it here angular.io/api/core/testing/tick

Collapse
 
rebaiahmed profile image
Ahmed Rebai

Did you tried this package: npmjs.com/package/ng-mocks before?