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

#161114061 Customer should successfully place orders on provision of valid food Id #58

Merged
merged 1 commit into from Oct 10, 2018

Conversation

akhilome
Copy link
Owner

What does this PR do?

allow the successful creation of new orders when a customer provides a valid food id

Description of Task to be completed?

  • write more assertions for when the food id provided is a string
  • modify ordercontroller to properly handle body input

How should this be manually tested?

  • Clone the git repo, and setup project as per described in README
  • Start the app by running npm start from the terminal
  • Fire up postman and hit the http://localhost:3000/api/v1/auth/login/ endpoint providing a valid email and password to get a valid auth token
  • Take the x-auth token generated and make a new food order by hitting the POST /orders endpoint providing a valid foodId in the body section of the request.

What are the relevant pivotal tracker stories?

#161114061

Screenshots

image

- write more assertions for when the food id provided is string
- modify ordercontroller to properly handle body input

[Fixes #161114061]
@akhilome akhilome merged commit 7c122cf into develop Oct 10, 2018
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.895% when pulling 8e4cfe1 on bg-place-order-161114061 into 90cd99f on develop.

@akhilome akhilome deleted the bg-place-order-161114061 branch October 11, 2018 06:27
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.

None yet

2 participants