@@ -85,7 +85,7 @@ describe('VersionsApiClient', () => {
8585 await versionsApiClient . deleteVersions ( database , appVersions ) ;
8686
8787 expect ( fakeBugSplatApiClient . fetch ) . toHaveBeenCalledWith (
88- `/api/versions?database=${ database } &appVersions=${ appVersions [ 0 ] . application } ,${ appVersions [ 0 ] . version } ,${ appVersions [ 1 ] . application } ,${ appVersions [ 1 ] . version } ` ,
88+ `/api/v2/ versions?database=${ database } &appVersions=${ appVersions [ 0 ] . application } ,${ appVersions [ 0 ] . version } ,${ appVersions [ 1 ] . application } ,${ appVersions [ 1 ] . version } ` ,
8989 jasmine . anything ( )
9090 ) ;
9191 } ) ;
@@ -116,7 +116,7 @@ describe('VersionsApiClient', () => {
116116
117117 it ( 'should call fetch with route containing database, application, version, and fullDumps' , ( ) => {
118118 expect ( fakeBugSplatApiClient . fetch ) . toHaveBeenCalledWith (
119- `/api/versions?database=${ database } &appName=${ application } &appVersion=${ version } &fullDumps=${ fullDumps ? 1 : 0 } ` ,
119+ `/api/v2/ versions?database=${ database } &appName=${ application } &appVersion=${ version } &fullDumps=${ fullDumps ? 1 : 0 } ` ,
120120 jasmine . anything ( )
121121 ) ;
122122 } ) ;
@@ -144,7 +144,7 @@ describe('VersionsApiClient', () => {
144144
145145 it ( 'should call fetch with route containing database, application, version, and fullDumps' , ( ) => {
146146 expect ( fakeBugSplatApiClient . fetch ) . toHaveBeenCalledWith (
147- `/api/versions?database=${ database } &appName=${ application } &appVersion=${ version } &retired=${ retired ? 1 : 0 } ` ,
147+ `/api/v2/ versions?database=${ database } &appName=${ application } &appVersion=${ version } &retired=${ retired ? 1 : 0 } ` ,
148148 jasmine . anything ( )
149149 ) ;
150150 } ) ;
@@ -175,7 +175,7 @@ describe('VersionsApiClient', () => {
175175
176176 it ( 'should call fetch with route containing database, application and version' , ( ) => {
177177 expect ( fakeBugSplatApiClient . fetch ) . toHaveBeenCalledWith (
178- `/api/versions?database=${ database } &appName=${ application } &appVersion=${ version } ` ,
178+ `/api/v2/ versions?database=${ database } &appName=${ application } &appVersion=${ version } ` ,
179179 jasmine . anything ( )
180180 ) ;
181181 } ) ;
@@ -252,7 +252,7 @@ describe('VersionsApiClient', () => {
252252
253253 it ( 'should call fetch with correct route' , ( ) => {
254254 expect ( fakeBugSplatApiClient . fetch ) . toHaveBeenCalledWith (
255- '/api/versions' ,
255+ '/api/v2/ versions' ,
256256 jasmine . anything ( )
257257 ) ;
258258 } ) ;
0 commit comments