post a config
(t *testing.T, userID string, config userconfig.Config)
| 46 | |
| 47 | // post a config |
| 48 | func (c configurable) post(t *testing.T, userID string, config userconfig.Config) userconfig.View { |
| 49 | w := requestAsUser(t, userID, "POST", c.Endpoint, "", readerFromConfig(t, config)) |
| 50 | require.Equal(t, http.StatusNoContent, w.Code) |
| 51 | return c.get(t, userID) |
| 52 | } |
| 53 | |
| 54 | // get a config |
| 55 | func (c configurable) get(t *testing.T, userID string) userconfig.View { |
no test coverage detected