Fixes test to improve coverage
All checks were successful
gitea-deepak/gogmagog/pipeline/head This commit looks good
All checks were successful
gitea-deepak/gogmagog/pipeline/head This commit looks good
This commit is contained in:
parent
4b4070df98
commit
dc18440821
@ -117,10 +117,8 @@ func TestTwoBodyActionPost(t *testing.T) {
|
|||||||
m := getModel([]*models.Plan{p}, []*models.Action{})
|
m := getModel([]*models.Plan{p}, []*models.Action{})
|
||||||
router := routes.NewRouter(m)
|
router := routes.NewRouter(m)
|
||||||
data := []byte(`{
|
data := []byte(`{
|
||||||
"plan_date": "2021-01-01T00:00:00Z",
|
|
||||||
"plan_id": 5
|
"plan_id": 5
|
||||||
}, {
|
}, {
|
||||||
"plan_date": "2021-01-01T00:00:00Z",
|
|
||||||
"plan_id": 6
|
"plan_id": 6
|
||||||
}`)
|
}`)
|
||||||
req, _ := http.NewRequest("POST", "/actions", bytes.NewBuffer(data))
|
req, _ := http.NewRequest("POST", "/actions", bytes.NewBuffer(data))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user