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

[enh] return created model so it can be used on test cases' interactions #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gustavocabral
Copy link

Goal

  • Leverage given method by making it return the provided new state

Changes

  • addState now returns whatever the providerState's callback results

Tests

  • a bed exists providerState returns the model created on Mirage server.

@gustavocabral gustavocabral force-pushed the enh_return_given_state branch from 06b18d2 to ad154ac Compare January 3, 2020 20:03
*/
addState(name, params) {
this.interaction.addProviderState(name, params);
return this.interaction.addProviderState(name, params);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not sure how to proceed here. I am returning whatever is returned by addProviderState.

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

Successfully merging this pull request may close these issues.

1 participant