(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestCustomWrapper(t *testing.T) { |
| 48 | app := newApp() |
| 49 | e := httptest.New(t, app) |
| 50 | |
| 51 | for _, u := range urls { |
| 52 | url := u.String() |
| 53 | contents := u.loadFromBase("./public") |
| 54 | |
| 55 | e.GET(url).Expect(). |
| 56 | Status(httptest.StatusOK). |
| 57 | Body().IsEqual(contents) |
| 58 | } |
| 59 | |
| 60 | e.GET("/other/something").Expect().Status(httptest.StatusOK) |
| 61 | } |