ember-data-factory-guy
ember-data-factory-guy copied to clipboard
allow match() to be used for any mock request
Currently only mockCreate
and mockUpdate
support match()
. This PR adds match()
for the other kinds of mock requests. Request bodies can get complex so it's nice to have a callback where you can do assertions etc.
For the implementation I basically merged AttributeMatcher
into MockRequest
.
Thanks for working on this @dwickern. I've just kicked off CI to run the tests.
Any chance we could add some updates to the existing README which outlines how you'd use this?