Compare commits
1 Commits
e397c509ca
...
4ef0b759ef
Author | SHA1 | Date | |
---|---|---|---|
4ef0b759ef |
@ -40,6 +40,7 @@ func TestRegisterUser(t *testing.T) {
|
|||||||
http.MethodPost,
|
http.MethodPost,
|
||||||
"/api/v1/user/register",
|
"/api/v1/user/register",
|
||||||
strings.NewReader(`{"password":"pass","email":"info@example.com","name":"Test"}`))
|
strings.NewReader(`{"password":"pass","email":"info@example.com","name":"Test"}`))
|
||||||
|
request.Header.Set("Content-Type", "application/json")
|
||||||
context := engine.NewContext(request, recorder)
|
context := engine.NewContext(request, recorder)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("error creating request: %s", err)
|
t.Errorf("error creating request: %s", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user