Fixes test to improve coverage
All checks were successful
gitea-deepak/gogmagog/pipeline/head This commit looks good

This commit is contained in:
Deepak Mallubhotla 2021-01-09 22:10:44 -06:00
parent 4b4070df98
commit dc18440821

View File

@ -117,10 +117,8 @@ func TestTwoBodyActionPost(t *testing.T) {
m := getModel([]*models.Plan{p}, []*models.Action{})
router := routes.NewRouter(m)
data := []byte(`{
"plan_date": "2021-01-01T00:00:00Z",
"plan_id": 5
}, {
"plan_date": "2021-01-01T00:00:00Z",
"plan_id": 6
}`)
req, _ := http.NewRequest("POST", "/actions", bytes.NewBuffer(data))