Skip to content

Commit 1080951

Browse files
committed
revert test mock to original camelCase format
1 parent 9684994 commit 1080951

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/core/services/__tests__/AuthenticationOrchestrator.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -626,10 +626,10 @@ describe('AuthenticationOrchestrator', () => {
626626
);
627627
});
628628

629-
it('multifactorChallenge should send correct payload and return camelCased response', async () => {
630-
const apiResponse = { challenge_type: 'oob', oob_code: 'abc' };
629+
it('multifactorChallenge should send correct payload and return response', async () => {
630+
const challengeResponse = { challengeType: 'oob', oobCode: 'abc' };
631631
mockHttpClientInstance.post.mockResolvedValueOnce({
632-
json: apiResponse,
632+
json: challengeResponse,
633633
response: new Response(null, { status: 200 }),
634634
});
635635
const result = await orchestrator.multifactorChallenge({
@@ -648,7 +648,7 @@ describe('AuthenticationOrchestrator', () => {
648648
},
649649
undefined
650650
);
651-
expect(result).toEqual({ challengeType: 'oob', oobCode: 'abc' });
651+
expect(result).toEqual(challengeResponse);
652652
});
653653
});
654654

0 commit comments

Comments
 (0)