Skip to content

Commit

Permalink
introduce nextHandler.go
Browse files Browse the repository at this point in the history
  • Loading branch information
larmic committed Jul 3, 2023
1 parent b77ae6e commit 0f653ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/handler/nextHandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestGetNextHappyPath(t *testing.T) {
data := sendGetNextRequest(t, controller, streetName, houseNumber)

responseWithoutNewLines := strings.ReplaceAll(string(data), "\n", "")
expectedResponse := "{\"day_of_collection\":\"2045.01.02\",\"garbage_types\":[\"brown\",\"black\"]}"
expectedResponse := "{\"day_of_collection\":\"2045-01-02\",\"garbage_types\":[\"brown\",\"black\"]}"

if responseWithoutNewLines != expectedResponse {
t.Errorf("expected response to be %s got %s", expectedResponse, string(data))
Expand Down

0 comments on commit 0f653ca

Please sign in to comment.