You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, add key usage is also not documented if I am not mistaken. Also, when I try to follow the code and understand its usage, I could not understand its purpose. I have guessed that it was the older way of adding meta info with the add method. If I am right, this add option might be removed as well.
The text was updated successfully, but these errors were encountered:
First of all, thank you all for this great addon.
The docs on the README.md mentions a
returns
method usage with acreated_at
key for mockCreate. Looks like this suggested usage is no longer valid.As far as I see, the options object for the
returns
method ofmockCreate
andmockUpdate
can only containattrs
andadd
as a key.ref: https://github.com/adopted-ember-addons/ember-data-factory-guy/blob/master/addon/mocks/attribute-matcher.js#L80
Other than that, I think
add
key is also only valid for mockUpdate, looks likemockCreate
does not use it.ref: https://github.com/adopted-ember-addons/ember-data-factory-guy/blob/v3.9.7/addon/mocks/mock-update-request.js#L41
ref: https://github.com/adopted-ember-addons/ember-data-factory-guy/blob/master/addon/mocks/mock-create-request.js#L30
However,
add
key usage is also not documented if I am not mistaken. Also, when I try to follow the code and understand its usage, I could not understand its purpose. I have guessed that it was the older way of adding meta info with theadd
method. If I am right, thisadd
option might be removed as well.The text was updated successfully, but these errors were encountered: