@@ -14,19 +14,20 @@ import { expect, describe, beforeAll, test } from "@jest/globals";
14
14
15
15
const REPO = "curly-fiesta" ;
16
16
const USER = "catelinemnemosyne" ;
17
+ const STATS_CARD_USER = "e2eninja" ;
17
18
const GIST_ID = "372cef55fd897b31909fdeb3a7262758" ;
18
19
19
20
const STATS_DATA = {
20
- name : "Cateline Mnemosyne " ,
21
- totalPRs : 2 ,
21
+ name : "E2ENinja " ,
22
+ totalPRs : 1 ,
22
23
totalReviews : 0 ,
23
- totalCommits : 16 ,
24
+ totalCommits : 3 ,
24
25
totalIssues : 1 ,
25
26
totalStars : 1 ,
26
- contributedTo : 1 ,
27
+ contributedTo : 0 ,
27
28
rank : {
28
29
level : "C" ,
29
- percentile : 98.25108541551654 ,
30
+ percentile : 98.73972605284538 ,
30
31
} ,
31
32
} ;
32
33
@@ -116,7 +117,7 @@ describe("Fetch Cards", () => {
116
117
117
118
// Check if the Vercel preview instance stats card function is up and running.
118
119
await expect (
119
- axios . get ( `${ VERCEL_PREVIEW_URL } /api?username=${ USER } ` ) ,
120
+ axios . get ( `${ VERCEL_PREVIEW_URL } /api?username=${ STATS_CARD_USER } ` ) ,
120
121
) . resolves . not . toThrow ( ) ;
121
122
122
123
// Get local stats card.
@@ -126,7 +127,7 @@ describe("Fetch Cards", () => {
126
127
127
128
// Get the Vercel preview stats card response.
128
129
const serverStatsSvg = await axios . get (
129
- `${ VERCEL_PREVIEW_URL } /api?username=${ USER } &include_all_commits=true&${ CACHE_BURST_STRING } ` ,
130
+ `${ VERCEL_PREVIEW_URL } /api?username=${ STATS_CARD_USER } &include_all_commits=true&${ CACHE_BURST_STRING } ` ,
130
131
) ;
131
132
132
133
// Check if stats card from deployment matches the stats card from local.
0 commit comments