casing and dummy endpoints
This commit is contained in:
@@ -18,12 +18,12 @@ func TestFeeds(t *testing.T) {
|
||||
|
||||
t.Run("happy", func(t *testing.T) {
|
||||
body := make(url.Values)
|
||||
body.Set("url", "url")
|
||||
body.Set("cron", "cron")
|
||||
body.Set("pattern", "pattern")
|
||||
body.Set("webhookMethod", "wmethod")
|
||||
body.Set("webhookURL", "wurl")
|
||||
body.Set("webhookBody", "wbody")
|
||||
body.Set("URL", "url")
|
||||
body.Set("Cron", "cron")
|
||||
body.Set("Pattern", "pattern")
|
||||
body.Set("WebhookMethod", "wmethod")
|
||||
body.Set("WebhookURL", "wurl")
|
||||
body.Set("WebhookBody", "wbody")
|
||||
w := httptest.NewRecorder()
|
||||
r := httptest.NewRequest(http.MethodPost, "/v1/feeds", strings.NewReader(body.Encode()))
|
||||
r = r.WithContext(ctx)
|
||||
|
||||
Reference in New Issue
Block a user