@@ -27,7 +27,7 @@ const uploadSuccessResponseObj = {
2727} ;
2828
2929function successSignature ( ) {
30- server . respondWith ( "GET" , initializationParams . authenticationEndpoint ,
30+ server . respondWith ( "GET" , new RegExp ( initializationParams . authenticationEndpoint + ".*" ) ,
3131 [
3232 200 ,
3333 { "Content-Type" : "application/json" } ,
@@ -41,7 +41,7 @@ function successSignature() {
4141}
4242
4343function nonSuccessErrorSignature ( ) {
44- server . respondWith ( "GET" , initializationParams . authenticationEndpoint ,
44+ server . respondWith ( "GET" , new RegExp ( initializationParams . authenticationEndpoint + ".*" ) ,
4545 [
4646 403 ,
4747 { "Content-Type" : "application/json" } ,
@@ -221,7 +221,7 @@ describe("File upload", function () {
221221 expect ( server . requests . length ) . to . be . equal ( 2 ) ;
222222
223223 // Simulate non 200 response on authentication endpoint
224- server . respondWith ( "GET" , initializationParams . authenticationEndpoint ,
224+ server . respondWith ( "GET" , new RegExp ( initializationParams . authenticationEndpoint + ".*" ) ,
225225 [
226226 200 ,
227227 { "Content-Type" : "application/json" } ,
@@ -245,7 +245,7 @@ describe("File upload", function () {
245245 expect ( server . requests . length ) . to . be . equal ( 2 ) ;
246246
247247 // Simulate non 200 response on authentication endpoint
248- server . respondWith ( "GET" , initializationParams . authenticationEndpoint ,
248+ server . respondWith ( "GET" , new RegExp ( initializationParams . authenticationEndpoint + ".*" ) ,
249249 [
250250 200 ,
251251 { "Content-Type" : "application/json" } ,
@@ -664,7 +664,7 @@ describe("File upload", function () {
664664 } ) ;
665665
666666 expect ( server . requests . length ) . to . be . equal ( 2 ) ;
667- server . respondWith ( "GET" , newAuthEndpoint ,
667+ server . respondWith ( "GET" , new RegExp ( newAuthEndpoint + ".*" ) ,
668668 [
669669 200 ,
670670 { "Content-Type" : "application/json" } ,
0 commit comments