Put The Mock Gun Away
I gave a course recently on unit testing in Angular, and we were looking at some code the developers wrote, and we wanted to test. It looked something like this: someApiCallAsync(p1, p2, …) .then(response => { if (response.ok){ …. } else { ….. }; }) Basically we’re looking at an Read more…