Ellisande / mockolate

Simple mocking framework for JS
MIT License
1 stars 3 forks source link

Base Matchers #8

Closed Ellisande closed 8 years ago

Ellisande commented 8 years ago

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Feature

What is the current behavior? (You can also link to an open relevant tickets here)

There are no matchers. Whens can only match exactly on arguments.

What is the new behavior (if this is a feature change)?

You can use matchers to do broader stubbing. For instance the any() matcher will match anything.

Where should the reviewer start?

The matchers folder.

This is how I tested it

I wrote lots of tests.

Does this PR introduce a breaking change?

Nope.

If yes:

Ellisande commented 8 years ago

Closes #2