@@ -11,7 +11,7 @@ const ARTIFACTS = [
1111 id : 123 ,
1212 name : 'rock-android-debug-1234567890' ,
1313 archive_download_url :
14- 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts/123' ,
14+ 'https://api.github.com/repos/callstack /rock/actions/artifacts/123' ,
1515 size_in_bytes : 10000 ,
1616 expires_at : '2025-05-20T12:00:00Z' ,
1717 } ,
@@ -20,7 +20,7 @@ const ARTIFACTS = [
2020 id : 124 ,
2121 name : 'rock-android-debug-1234567890' ,
2222 archive_download_url :
23- 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts/124' ,
23+ 'https://api.github.com/repos/callstack /rock/actions/artifacts/124' ,
2424 size_in_bytes : 10000 ,
2525 expires_at : '2025-05-20T12:00:00Z' ,
2626 } ,
@@ -41,7 +41,7 @@ test('providerGitHub implements list method returning an array of artifacts', as
4141 limit,
4242 } ) ;
4343 expect ( fetch ) . toHaveBeenCalledWith (
44- `https://api.github.com/repos/callstackincubator /rock/actions/artifacts?per_page=${ limit } &page=1&name=rock-android-debug-1234567890` ,
44+ `https://api.github.com/repos/callstack /rock/actions/artifacts?per_page=${ limit } &page=1&name=rock-android-debug-1234567890` ,
4545 {
4646 headers : {
4747 Authorization : 'token TEST_TOKEN' ,
@@ -52,7 +52,7 @@ test('providerGitHub implements list method returning an array of artifacts', as
5252 {
5353 id : '123' ,
5454 name : 'rock-android-debug-1234567890' ,
55- url : 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts/123' ,
55+ url : 'https://api.github.com/repos/callstack /rock/actions/artifacts/123' ,
5656 } ,
5757 ] ) ;
5858} ) ;
@@ -64,15 +64,15 @@ test('providerGitHub implements download method returning a stream with artifact
6464 global . fetch = vi . fn ( ( url ) => {
6565 if (
6666 url ===
67- 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts?per_page=100&page=1&name=rock-android-debug-1234567890'
67+ 'https://api.github.com/repos/callstack /rock/actions/artifacts?per_page=100&page=1&name=rock-android-debug-1234567890'
6868 ) {
6969 return Promise . resolve (
7070 new Response ( JSON . stringify ( { artifacts : ARTIFACTS . slice ( 0 , limit ) } ) ) ,
7171 ) ;
7272 }
7373 if (
7474 url ===
75- 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts/123'
75+ 'https://api.github.com/repos/callstack /rock/actions/artifacts/123'
7676 ) {
7777 return Promise . resolve ( downloadResponse ) ;
7878 }
@@ -97,22 +97,22 @@ test('providerGitHub implements delete method', async () => {
9797 global . fetch = vi . fn ( ( url , options ) => {
9898 if (
9999 url ===
100- 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts?per_page=100&page=1&name=rock-android-debug-1234567890'
100+ 'https://api.github.com/repos/callstack /rock/actions/artifacts?per_page=100&page=1&name=rock-android-debug-1234567890'
101101 ) {
102102 return Promise . resolve (
103103 new Response ( JSON . stringify ( { artifacts : ARTIFACTS } ) ) ,
104104 ) ;
105105 }
106106 if (
107107 url ===
108- 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts/123' &&
108+ 'https://api.github.com/repos/callstack /rock/actions/artifacts/123' &&
109109 options . method === 'DELETE'
110110 ) {
111111 return Promise . resolve ( new Response ( ) ) ;
112112 }
113113 if (
114114 url ===
115- 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts/124' &&
115+ 'https://api.github.com/repos/callstack /rock/actions/artifacts/124' &&
116116 options . method === 'DELETE'
117117 ) {
118118 return Promise . resolve ( new Response ( ) ) ;
@@ -131,11 +131,11 @@ test('providerGitHub implements delete method', async () => {
131131 expect ( response ) . toEqual ( [
132132 {
133133 name : 'rock-android-debug-1234567890' ,
134- url : 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts/123' ,
134+ url : 'https://api.github.com/repos/callstack /rock/actions/artifacts/123' ,
135135 } ,
136136 {
137137 name : 'rock-android-debug-1234567890' ,
138- url : 'https://api.github.com/repos/callstackincubator /rock/actions/artifacts/124' ,
138+ url : 'https://api.github.com/repos/callstack /rock/actions/artifacts/124' ,
139139 } ,
140140 ] ) ;
141141} ) ;
0 commit comments