@@ -226,7 +226,7 @@ describe("defaultProvider", () => {
226
226
await expect ( defaultProvider ( iniConfig ) ( ) ) . resolves ;
227
227
228
228
expect ( ( fromIni as any ) . mock . calls . length ) . toBe ( 1 ) ;
229
- expect ( ( fromIni as any ) . mock . calls [ 0 ] [ 0 ] ) . toBe ( iniConfig ) ;
229
+ expect ( ( fromIni as any ) . mock . calls [ 0 ] [ 0 ] ) . toEqual ( iniConfig ) ;
230
230
} ) ;
231
231
232
232
it ( "should pass configuration on to the process provider" , async ( ) => {
@@ -249,7 +249,7 @@ describe("defaultProvider", () => {
249
249
await expect ( defaultProvider ( processConfig ) ( ) ) . resolves ;
250
250
expect ( ( fromProcess as any ) . mock . calls . length ) . toBe ( 1 ) ;
251
251
expect ( ( fromProcess as any ) . mock . calls . length ) . toBe ( 1 ) ;
252
- expect ( ( fromProcess as any ) . mock . calls [ 0 ] [ 0 ] ) . toBe ( processConfig ) ;
252
+ expect ( ( fromProcess as any ) . mock . calls [ 0 ] [ 0 ] ) . toEqual ( processConfig ) ;
253
253
} ) ;
254
254
255
255
it ( "should pass configuration on to the IMDS provider" , async ( ) => {
@@ -273,7 +273,7 @@ describe("defaultProvider", () => {
273
273
await expect ( defaultProvider ( imdsConfig ) ( ) ) . resolves ;
274
274
275
275
expect ( ( fromInstanceMetadata as any ) . mock . calls . length ) . toBe ( 1 ) ;
276
- expect ( ( fromInstanceMetadata as any ) . mock . calls [ 0 ] [ 0 ] ) . toBe ( imdsConfig ) ;
276
+ expect ( ( fromInstanceMetadata as any ) . mock . calls [ 0 ] [ 0 ] ) . toEqual ( imdsConfig ) ;
277
277
} ) ;
278
278
279
279
it ( "should pass configuration on to the ECS IMDS provider" , async ( ) => {
@@ -298,7 +298,7 @@ describe("defaultProvider", () => {
298
298
await expect ( defaultProvider ( ecsImdsConfig ) ( ) ) . resolves ;
299
299
300
300
expect ( ( fromContainerMetadata as any ) . mock . calls . length ) . toBe ( 1 ) ;
301
- expect ( ( fromContainerMetadata as any ) . mock . calls [ 0 ] [ 0 ] ) . toBe ( ecsImdsConfig ) ;
301
+ expect ( ( fromContainerMetadata as any ) . mock . calls [ 0 ] [ 0 ] ) . toEqual ( ecsImdsConfig ) ;
302
302
} ) ;
303
303
304
304
it ( "should return the same promise across invocations" , async ( ) => {
0 commit comments