angular-training-slides icon indicating copy to clipboard operation
angular-training-slides copied to clipboard

Light Mocks

Open mdegani opened this issue 8 years ago • 3 comments

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)?

mdegani avatar May 04 '17 17:05 mdegani

@rangle/angular-content-maintainers testing 🔢

winkerVSbecks avatar May 05 '17 15:05 winkerVSbecks

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

gvwilson avatar May 08 '17 14:05 gvwilson

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?

mdegani avatar May 08 '17 17:05 mdegani