Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full control over handler #159

Closed
xcambar opened this issue Dec 8, 2015 · 1 comment
Closed

Full control over handler #159

xcambar opened this issue Dec 8, 2015 · 1 comment

Comments

@xcambar
Copy link
Contributor

xcambar commented Dec 8, 2015

refs #156 (comment)

(Most) mock classes expose a handler method, but currently, this method is bound to mockjax during instanciation.

The call to this method should be wrapped in order to allow the developpers to have access to all the abilities of mockjax, in rare case when the exposed API of FactoryGuy is not enough.

@danielspaniel
Copy link
Collaborator

the handler is now available with version 2.3.0
when you get a mock with

   import { mockFind } from 'ember-data-factory-guy';
   let mock = mockFind('user');
   mock.handler //=> the handler function used by mockjax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants