@@ -5,7 +5,7 @@ const authenticationLoader = require('../lib/Adapters/Auth');
5
5
const path = require ( 'path' ) ;
6
6
const responses = {
7
7
gpgames : { playerId : 'userId' } ,
8
- instagram : { data : { id : 'userId' } } ,
8
+ instagram : { id : 'userId' } ,
9
9
janrainengage : { stat : 'ok' , profile : { identifier : 'userId' } } ,
10
10
janraincapture : { stat : 'ok' , result : 'userId' } ,
11
11
line : { userId : 'userId' } ,
@@ -485,7 +485,7 @@ describe('instagram auth adapter', () => {
485
485
486
486
it ( 'should use default api' , async ( ) => {
487
487
spyOn ( httpsRequest , 'get' ) . and . callFake ( ( ) => {
488
- return Promise . resolve ( { data : { id : 'userId' } } ) ;
488
+ return Promise . resolve ( { id : 'userId' } ) ;
489
489
} ) ;
490
490
await instagram . validateAuthData ( { id : 'userId' , access_token : 'the_token' } , { } ) ;
491
491
expect ( httpsRequest . get ) . toHaveBeenCalledWith (
@@ -495,7 +495,7 @@ describe('instagram auth adapter', () => {
495
495
496
496
it ( 'should pass in api url' , async ( ) => {
497
497
spyOn ( httpsRequest , 'get' ) . and . callFake ( ( ) => {
498
- return Promise . resolve ( { data : { id : 'userId' } } ) ;
498
+ return Promise . resolve ( { id : 'userId' } ) ;
499
499
} ) ;
500
500
await instagram . validateAuthData (
501
501
{
0 commit comments