mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-09-04 00:17:24 +00:00
chore: added secondary warning message in renderError
This commit is contained in:
+6
-1
@@ -94,7 +94,12 @@ describe("Test /api/", () => {
|
||||
await api(req, res);
|
||||
|
||||
expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml");
|
||||
expect(res.send).toBeCalledWith(renderError(error.errors[0].message));
|
||||
expect(res.send).toBeCalledWith(
|
||||
renderError(
|
||||
error.errors[0].message,
|
||||
"Make sure the provided username is not an organization"
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
it("should get the query options", async () => {
|
||||
|
||||
Reference in New Issue
Block a user