Skip to content

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