chore: added secondary warning message in renderError

This commit is contained in:
anuraghazra
2020-07-25 13:29:32 +05:30
parent e32ab3f973
commit 6d5a828542
4 changed files with 35 additions and 8 deletions

View File

@@ -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 () => {