Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into dependabot/github…
Browse files Browse the repository at this point in the history
…_actions/peter-evans/create-pull-request-6.0.0
  • Loading branch information
qwerty541 committed Feb 8, 2024
2 parents f79c618 + a7159aa commit 77179dd
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 72 deletions.
122 changes: 61 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.3.0",
"@testing-library/jest-dom": "^6.4.2",
"@uppercod/css-to-object": "^1.1.1",
"axios-mock-adapter": "^1.22.0",
"color-contrast-checker": "^2.1.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"hjson": "^3.2.2",
"husky": "^9.0.7",
"husky": "^9.0.10",
"jest": "^29.7.0",
"jest-bench": "^29.7.1",
"jest-environment-jsdom": "^29.7.0",
"js-yaml": "^4.1.0",
"lint-staged": "^15.2.0",
"lint-staged": "^15.2.2",
"lodash.snakecase": "^4.1.1",
"parse-diff": "^0.11.1",
"prettier": "^3.2.4"
"prettier": "^3.2.5"
},
"dependencies": {
"axios": "^1.6.7",
Expand Down
15 changes: 8 additions & 7 deletions tests/e2e/e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ import { expect, describe, beforeAll, test } from "@jest/globals";

const REPO = "curly-fiesta";
const USER = "catelinemnemosyne";
const STATS_CARD_USER = "e2eninja";
const GIST_ID = "372cef55fd897b31909fdeb3a7262758";

const STATS_DATA = {
name: "Cateline Mnemosyne",
totalPRs: 2,
name: "E2ENinja",
totalPRs: 1,
totalReviews: 0,
totalCommits: 16,
totalCommits: 3,
totalIssues: 1,
totalStars: 1,
contributedTo: 1,
contributedTo: 0,
rank: {
level: "C",
percentile: 98.25108541551654,
percentile: 98.73972605284538,
},
};

Expand Down Expand Up @@ -116,7 +117,7 @@ describe("Fetch Cards", () => {

// Check if the Vercel preview instance stats card function is up and running.
await expect(
axios.get(`${VERCEL_PREVIEW_URL}/api?username=${USER}`),
axios.get(`${VERCEL_PREVIEW_URL}/api?username=${STATS_CARD_USER}`),
).resolves.not.toThrow();

// Get local stats card.
Expand All @@ -126,7 +127,7 @@ describe("Fetch Cards", () => {

// Get the Vercel preview stats card response.
const serverStatsSvg = await axios.get(
`${VERCEL_PREVIEW_URL}/api?username=${USER}&include_all_commits=true&${CACHE_BURST_STRING}`,
`${VERCEL_PREVIEW_URL}/api?username=${STATS_CARD_USER}&include_all_commits=true&${CACHE_BURST_STRING}`,
);

// Check if stats card from deployment matches the stats card from local.
Expand Down

0 comments on commit 77179dd

Please sign in to comment.