Skip to content

Commit

Permalink
fix(test): optimize social verification test
Browse files Browse the repository at this point in the history
optimize social verificaiton tests
  • Loading branch information
simeng-li committed Aug 7, 2024
1 parent 70ced56 commit ba6b6af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,15 @@ devFeatureTest.describe('social verification', () => {
it('should throw if the connectorId is different', async () => {
const client = await initExperienceClient();
const connectorId = connectorIdMap.get(mockSocialConnectorId)!;
const emailConnectorId = connectorIdMap.get(mockEmailConnectorId)!;

const { verificationId } = await client.getSocialAuthorizationUri(connectorId, {
redirectUri,
state,
});

await expectRejects(
client.verifySocialAuthorization('invalid_connector_id', {
client.verifySocialAuthorization(emailConnectorId, {
verificationId,
connectorData: {
authorizationCode,
Expand Down

0 comments on commit ba6b6af

Please sign in to comment.