ember-data-factory-guy icon indicating copy to clipboard operation
ember-data-factory-guy copied to clipboard

allow match() to be used for any mock request

Open dwickern opened this issue 3 years ago • 1 comments

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.

dwickern avatar Nov 03 '21 04:11 dwickern

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?

patocallaghan avatar Nov 15 '21 14:11 patocallaghan