forked from mirrored/github-readme-stats
Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58d2ae6ebf | ||
|
|
4b8198fa21 | ||
|
|
70f0264905 | ||
|
|
0850a97630 | ||
|
|
5ae959b57c | ||
|
|
77dcdab42c | ||
|
|
227711c628 | ||
|
|
42fdff624f |
@@ -45,8 +45,9 @@ const retryer = async (fetcher, variables, retries = 0) => {
|
||||
// prettier-ignore
|
||||
// also checking for bad credentials if any tokens gets invalidated
|
||||
const isBadCredential = err.response.data && err.response.data.message === "Bad credentials";
|
||||
const isAccountSuspended = err.response.data && err.response.data.message === "Sorry. Your account was suspended.";
|
||||
|
||||
if (isBadCredential) {
|
||||
if (isBadCredential || isAccountSuspended) {
|
||||
logger.log(`PAT_${retries + 1} Failed`);
|
||||
retries++;
|
||||
// directly return from the function
|
||||
|
||||
@@ -329,7 +329,7 @@ describe("Test renderStatsCard", () => {
|
||||
document.querySelector(
|
||||
'g[transform="translate(0, 25)"]>.stagger>.stat.bold',
|
||||
).textContent,
|
||||
).toMatchInlineSnapshot(`"累计提交数(commit) (2022):"`);
|
||||
).toMatchInlineSnapshot(`"累计提交数(commit) (2023):"`);
|
||||
expect(
|
||||
document.querySelector(
|
||||
'g[transform="translate(0, 50)"]>.stagger>.stat.bold',
|
||||
|
||||
Reference in New Issue
Block a user