Skip to content

Commit 3bdd0c6

Browse files
committed
test: add withCredentials false to all api key configs
1 parent 43fae70 commit 3bdd0c6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/testHelpers/TestConstants.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ export class TestConstants {
1717
headers: {
1818
'Content-Type': 'application/json',
1919
'X-Dataverse-Key': TestConstants.TEST_DUMMY_API_KEY
20-
}
20+
},
21+
withCredentials: false
2122
}
2223
static readonly TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY_INCLUDE_DEACCESSIONED = {
2324
params: { includeDeaccessioned: true },
2425
headers: {
2526
'Content-Type': 'application/json',
2627
'X-Dataverse-Key': TestConstants.TEST_DUMMY_API_KEY
27-
}
28+
},
29+
withCredentials: false
2830
}
2931
static readonly TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_SESSION_COOKIE = {
3032
withCredentials: true,
@@ -45,7 +47,8 @@ export class TestConstants {
4547
params: {},
4648
headers: {
4749
'Content-Type': 'application/json'
48-
}
50+
},
51+
withCredentials: false
4952
}
5053
static readonly TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_BEARER_TOKEN = {
5154
params: {},

0 commit comments

Comments
 (0)