NewTest returns an app for a testing environment
()
| 23 | |
| 24 | // NewTest returns an app for a testing environment |
| 25 | func NewTest() App { |
| 26 | return App{ |
| 27 | Clock: clock.NewMock(), |
| 28 | EmailBackend: &testutils.MockEmailbackendImplementation{}, |
| 29 | HTTP500Page: assets.MustGetHTTP500ErrorPage(), |
| 30 | BaseURL: "http://127.0.0.0.1", |
| 31 | Port: "3000", |
| 32 | DisableRegistration: false, |
| 33 | DBPath: "", |
| 34 | AssetBaseURL: "", |
| 35 | } |
| 36 | } |