Added test for user profiles

This commit is contained in:
Eduard Urbach 2018-04-26 00:06:13 +02:00
parent 4fef7813ac
commit a67850ee93

View File

@ -87,6 +87,15 @@ func TestQuotePages(t *testing.T) {
}
}
func TestUserPages(t *testing.T) {
t.Parallel()
app := configure(aero.New())
for user := range arn.StreamUsers() {
testRoute(t, app, user.Link())
}
}
func testRoute(t *testing.T, app *aero.Application, route string) {
// Create a new HTTP request
request, err := http.NewRequest("GET", route, nil)