mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-11 03:52:59 +00:00
Update unit tests for pagination
This commit is contained in:
@@ -33,6 +33,10 @@ const withAPI = withProps((props) => ({
|
||||
}),
|
||||
deleteUser: (username) => jhapiRequest("/users/" + username, "DELETE"),
|
||||
findUser: (username) => jhapiRequest("/users/" + username, "GET"),
|
||||
validateUser: (username) =>
|
||||
findUser(username)
|
||||
.then((data) => data.status)
|
||||
.then((data) => (data > 200 ? false : true)),
|
||||
failRegexEvent: () =>
|
||||
alert(
|
||||
"Cannot change username - either contains special characters or is too short."
|
||||
|
Reference in New Issue
Block a user