@@ -437,13 +437,13 @@ describe('Storage', () => {
437437 delete process . env . STORAGE_EMULATOR_HOST ;
438438 } ) ;
439439
440- it ( 'should set baseUrl to env var STORAGE_EMULATOR_HOST' , ( ) => {
440+ it ( 'should set baseUrl to env var STORAGE_EMULATOR_HOST plus standard path ' , ( ) => {
441441 const storage = new Storage ( {
442442 projectId : PROJECT_ID ,
443443 } ) ;
444444
445445 const calledWith = storage . calledWith_ [ 0 ] ;
446- assert . strictEqual ( calledWith . baseUrl , EMULATOR_HOST ) ;
446+ assert . strictEqual ( calledWith . baseUrl , EMULATOR_HOST + '/storage/v1' ) ;
447447 assert . strictEqual (
448448 calledWith . apiEndpoint ,
449449 'https://internal.benchmark.com/path'
@@ -457,7 +457,7 @@ describe('Storage', () => {
457457 } ) ;
458458
459459 const calledWith = storage . calledWith_ [ 0 ] ;
460- assert . strictEqual ( calledWith . baseUrl , EMULATOR_HOST ) ;
460+ assert . strictEqual ( calledWith . baseUrl , EMULATOR_HOST + '/storage/v1' ) ;
461461 assert . strictEqual ( calledWith . apiEndpoint , 'https://some.api.com' ) ;
462462 } ) ;
463463
@@ -470,7 +470,7 @@ describe('Storage', () => {
470470 } ) ;
471471
472472 const calledWith = storage . calledWith_ [ 0 ] ;
473- assert . strictEqual ( calledWith . baseUrl , EMULATOR_HOST ) ;
473+ assert . strictEqual ( calledWith . baseUrl , EMULATOR_HOST + '/storage/v1' ) ;
474474 assert . strictEqual (
475475 calledWith . apiEndpoint ,
476476 'https://internal.benchmark.com/path'
0 commit comments