File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2207,11 +2207,10 @@ describe('Query options', () => {
2207
2207
2208
2208
const requestCall = fetchMock . calls ( '/api/post/1' ) [ 0 ] ;
2209
2209
expect ( orderDupPreservingFlattenedHeaders ( requestCall [ 1 ] ) ) . toEqual ( [
2210
- 'setup: setup' ,
2211
- 'setup: in-context duplicate setup' ,
2212
2210
'accept: application/json' ,
2213
2211
'authorization: 1234' ,
2214
2212
'context: context' ,
2213
+ 'setup: setup, in-context duplicate setup' ,
2215
2214
] ) ;
2216
2215
} ) ;
2217
2216
it ( 'respects context-provided header-merge policy' , async ( ) => {
@@ -2328,9 +2327,8 @@ describe('Query options', () => {
2328
2327
orderedFlattened . push ( `${ key } : ${ value } ` ) ;
2329
2328
} ) ;
2330
2329
expect ( orderedFlattened ) . toEqual ( [
2331
- 'authorization: initial setup' ,
2332
- 'authorization: context' ,
2333
2330
'accept: application/json' ,
2331
+ 'authorization: initial setup, context' ,
2334
2332
] ) ;
2335
2333
} ) ;
2336
2334
it ( 'generates a new headers object if headers are undefined' , async ( ) => {
You can’t perform that action at this time.
0 commit comments