rangle / angular-training-slides

Slides for the Angular 2 training
https://rangle.github.io/angular-training-slides/
Other
29 stars 41 forks source link

Light Mocks #500

Open mdegani opened 7 years ago

mdegani commented 7 years ago

What is a "light mock"?

I like the term, but it's not something I've seen other than here: https://angular-2-training-book.rangle.io/handout/testing/services/alt-http-mocking.html.

Is there are a better way to describe a mock that provides only no-ops for the functions expected to be used, rather than a full mock (like the one angular allows us to to provide)?

winkerVSbecks commented 7 years ago

@rangle/angular-content-maintainers testing 🔢

gvwilson commented 7 years ago

Can you think of one line to add to /unit-testing-light-http-mock to close this one?

mdegani commented 7 years ago

How about starting slide with "Rather than providing a full mock for Angular's Http service, a light mock can be used." to introduce the concept by contrasting it with a full mock. Is that sufficient?