@@ -5,7 +5,7 @@ const authenticationLoader = require('../lib/Adapters/Auth');
55const path = require ( 'path' ) ;
66const responses = {
77 gpgames : { playerId : 'userId' } ,
8- instagram : { data : { id : 'userId' } } ,
8+ instagram : { id : 'userId' } ,
99 janrainengage : { stat : 'ok' , profile : { identifier : 'userId' } } ,
1010 janraincapture : { stat : 'ok' , result : 'userId' } ,
1111 line : { userId : 'userId' } ,
@@ -485,7 +485,7 @@ describe('instagram auth adapter', () => {
485485
486486 it ( 'should use default api' , async ( ) => {
487487 spyOn ( httpsRequest , 'get' ) . and . callFake ( ( ) => {
488- return Promise . resolve ( { data : { id : 'userId' } } ) ;
488+ return Promise . resolve ( { id : 'userId' } ) ;
489489 } ) ;
490490 await instagram . validateAuthData ( { id : 'userId' , access_token : 'the_token' } , { } ) ;
491491 expect ( httpsRequest . get ) . toHaveBeenCalledWith (
@@ -495,7 +495,7 @@ describe('instagram auth adapter', () => {
495495
496496 it ( 'should pass in api url' , async ( ) => {
497497 spyOn ( httpsRequest , 'get' ) . and . callFake ( ( ) => {
498- return Promise . resolve ( { data : { id : 'userId' } } ) ;
498+ return Promise . resolve ( { id : 'userId' } ) ;
499499 } ) ;
500500 await instagram . validateAuthData (
501501 {
0 commit comments