Skip to content

Conversation

@kftang
Copy link
Collaborator

@kftang kftang commented Nov 16, 2019

No description provided.

@kftang
Copy link
Collaborator Author

kftang commented Nov 16, 2019

Fixes #82

@kftang
Copy link
Collaborator Author

kftang commented Nov 16, 2019

Fixes #81

func TestClaimFoodTruckPutNoFoodTruck(t *testing.T) {
tests.ClearDB()

req, _ := http.NewRequest("PUT", "/foodtruck", nil)
Copy link
Member

Choose a reason for hiding this comment

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

wrong endpoint

tests.AddReview(models.JSONReview{
ID: "test",
})
req, _ := http.NewRequest("GET", "/review", nil)
Copy link
Member

Choose a reason for hiding this comment

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

wrong endpoint. GET /reviews

updateProfileRequest := invalidRequestBody{}
body, _ := json.Marshal(updateProfileRequest)

req, _ := http.NewRequest("PUT", "/users", bytes.NewBuffer(body))
Copy link
Member

Choose a reason for hiding this comment

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

change endpoint "/profile"

@kftang kftang merged commit 9eef9b2 into master Nov 16, 2019
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.

3 participants