Added test for user profiles
This commit is contained in:
parent
4fef7813ac
commit
a67850ee93
@ -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) {
|
func testRoute(t *testing.T, app *aero.Application, route string) {
|
||||||
// Create a new HTTP request
|
// Create a new HTTP request
|
||||||
request, err := http.NewRequest("GET", route, nil)
|
request, err := http.NewRequest("GET", route, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user