refactor: improve blacklisted username error by adding secondary message (#3444)
This commit is contained in:
1 parent
9c6eb22862
commit
89fc14609e
6 files changed
+12
-6
No files matched your search
+3
-1
@@ -291,7 +291,9 @@ describe("Test /api/", () => {
|
||||
await api(req, res);
|
||||
|
||||
expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml");
|
||||
expect(res.send).toBeCalledWith(renderError("Something went wrong"));
|
||||
expect(res.send).toBeCalledWith(
|
||||
renderError("Something went wrong", "This username is blacklisted"),
|
||||
);
|
||||
});
|
||||
|
||||
it("should render error card when wrong locale is provided", async () => {
|
||||
|
||||
Reference in new issue
Block a user