4 ms·
You can fully mock out those services and pass them into the component under test. Those mocks could return an immediately succeeding (or failing) promise for e
by Wintamute 12y ago
You can fully mock out those services and pass them into the component under test. Those mocks could return an immediately succeeding (or failing) promise for example. Hey presto, no uncertainty or weird promise handling code in your tests.