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

should return res.data in fetchSingleMove #5

Open
jdorseywx opened this issue Nov 25, 2020 · 1 comment
Open

should return res.data in fetchSingleMove #5

jdorseywx opened this issue Nov 25, 2020 · 1 comment

Comments

@jdorseywx
Copy link

Hi, great pact-js example! I was going thru it trying to add a contract test for fetching a single movie and the test was failing. In fetchSingleMovie method of consumer.js, you are returning the entire response, I think you want to return the data only, e.g. res.data (similar to fetchMovies).

@mdcruz
Copy link
Owner

mdcruz commented Jan 26, 2021

Hi @jdorseywx ah thanks so much for spotting that! I will make a note of it :)

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

No branches or pull requests

2 participants