@@ -70,7 +70,9 @@ describe('FilesRepository', () => {
7070 params : {
7171 size : testFileSize
7272 } ,
73- headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
73+ headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers ,
74+ withCredentials :
75+ TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . withCredentials
7476 }
7577 const expectedRequestConfigSessionCookie = {
7678 params : {
@@ -243,7 +245,9 @@ describe('FilesRepository', () => {
243245 includeDeaccessioned : testIncludeDeaccessioned ,
244246 orderCriteria : testFileOrderCriteria
245247 } ,
246- headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
248+ headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers ,
249+ withCredentials :
250+ TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . withCredentials
247251 }
248252 const expectedRequestConfigSessionCookie = {
249253 params : {
@@ -268,7 +272,9 @@ describe('FilesRepository', () => {
268272
269273 const expectedRequestConfigApiKeyWithOptional = {
270274 params : expectedRequestParamsWithOptional ,
271- headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
275+ headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers ,
276+ withCredentials :
277+ TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . withCredentials
272278 }
273279
274280 const expectedFiles = createFilesSubsetModel ( testTotalCount )
@@ -428,13 +434,15 @@ describe('FilesRepository', () => {
428434
429435 const expectedRequestConfigApiKey = {
430436 params : { includeDeaccessioned : testIncludeDeaccessioned } ,
431- headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
437+ headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers ,
438+ withCredentials :
439+ TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . withCredentials
432440 }
433441 const expectedRequestConfigSessionCookie = {
434442 params : { includeDeaccessioned : testIncludeDeaccessioned } ,
443+ headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_SESSION_COOKIE . headers ,
435444 withCredentials :
436- TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_SESSION_COOKIE . withCredentials ,
437- headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_SESSION_COOKIE . headers
445+ TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_SESSION_COOKIE . withCredentials
438446 }
439447
440448 const expectedRequestParamsWithOptional = {
@@ -447,7 +455,9 @@ describe('FilesRepository', () => {
447455
448456 const expectedRequestConfigApiKeyWithOptional = {
449457 params : expectedRequestParamsWithOptional ,
450- headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
458+ headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers ,
459+ withCredentials :
460+ TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . withCredentials
451461 }
452462
453463 const expectedCount = createFileCountsModel ( )
@@ -579,7 +589,9 @@ describe('FilesRepository', () => {
579589 mode : FileDownloadSizeMode . ARCHIVAL . toString ( ) ,
580590 includeDeaccessioned : testIncludeDeaccessioned
581591 } ,
582- headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
592+ headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers ,
593+ withCredentials :
594+ TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . withCredentials
583595 }
584596 const expectedRequestConfigSessionCookie = {
585597 params : {
@@ -599,7 +611,9 @@ describe('FilesRepository', () => {
599611 categoryName : testFileCriteria . categoryName ,
600612 tabularTagName : testFileCriteria . tabularTagName
601613 } ,
602- headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
614+ headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers ,
615+ withCredentials :
616+ TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . withCredentials
603617 }
604618 const expectedApiEndpoint = `${ TestConstants . TEST_API_URL } /datasets/${ testDatasetId } /versions/${ testDatasetVersionId } /downloadsize`
605619
@@ -1022,7 +1036,9 @@ describe('FilesRepository', () => {
10221036
10231037 const expectedRequestConfigApiKey = {
10241038 params : expectedRequestParams ,
1025- headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
1039+ headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers ,
1040+ withCredentials :
1041+ TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . withCredentials
10261042 }
10271043
10281044 const expectedRequestConfigSessionCookie = {
0 commit comments