mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 14:33:00 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -81,14 +81,14 @@ const CreateGroup = (props) => {
|
||||
.then((data) => dispatchPageUpdate(data, 0))
|
||||
.then(() => history.push("/groups"))
|
||||
.catch(() =>
|
||||
setErrorAlert(`Could not update groups list.`)
|
||||
setErrorAlert(`Could not update groups list.`),
|
||||
)
|
||||
: setErrorAlert(
|
||||
`Failed to create group. ${
|
||||
data.status == 409
|
||||
? "Group already exists."
|
||||
: ""
|
||||
}`
|
||||
}`,
|
||||
);
|
||||
})
|
||||
.catch(() => setErrorAlert(`Failed to create group.`));
|
||||
|
@@ -107,7 +107,7 @@ test("Shows a more specific UI error dialogue when user creation returns an impr
|
||||
});
|
||||
|
||||
let errorDialog = screen.getByText(
|
||||
"Failed to create group. Group already exists."
|
||||
"Failed to create group. Group already exists.",
|
||||
);
|
||||
|
||||
expect(errorDialog).toBeVisible();
|
||||
|
Reference in New Issue
Block a user