Skip to content

endpoint test #24

@jcromanu

Description

@jcromanu

change expected input for request type :
input createUserRequest
and expected output :
expectedOutput createUserResponse

instead of

	input          getUserRequest
	expectedOutput entities.User

and delete conditionals inside the test

from
ep := makeGetUserEndpoint(serviceMock, logger)
if !ok {
t.Errorf("Error parsing user response on test")
return
}

to
result, err := ep(ctx, tc.input)
assert.Equal(t, tc.expectedError, err, "Error on service create user ")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions