Skip to content

Commit 2302d50

Browse files
committed
Adapt tests to instagram authentication fix
1 parent 5791130 commit 2302d50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/AuthenticationAdapters.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const authenticationLoader = require('../lib/Adapters/Auth');
55
const path = require('path');
66
const 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

Comments
 (0)