feature: do not aks user's to open issues on upstream API errors (#3273)

Co-authored-by: rickstaa <rick.staa@outlook.com>
This commit is contained in:
Alexandr Garbuzovandrickstaa authored and GitHub committed 2023-10-13 11:16:14 +02:00
1 parent a39785189c
commit 0fd1ea3ce9
2 files changed
+49 -36

No files matched your search

+4
View File
@@ -321,5 +321,9 @@ describe("Test /api/", () => {
expect(res.send).toBeCalledWith(
renderError("Could not fetch total commits.", "Please try again later"),
);
// Received SVG output should not contain string "https://tiny.one/readme-stats"
expect(res.send.mock.calls[0][0]).not.toContain(
"https://tiny.one/readme-stats",
);
});
});