-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix v4 to append share_url and verify.form_submitted
- Loading branch information
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -450,7 +450,8 @@ describe('v4', () => { | |
results: { | ||
expires_at: '2023-08-29T20:43:31Z', | ||
previously_retained: true, | ||
masked_cert_url: 'https://cert.trustedform-dev.com/f1fd052c43f08078a37d840b243daa69a35e8eda' | ||
masked_cert_url: 'https://cert.trustedform-dev.com/f1fd052c43f08078a37d840b243daa69a35e8eda', | ||
share_url: 'https://cert.trustedform-dev.com/1eb8608bdf5b3bc42bb1e33cb0ed57a4bab643ef?shared_token=k6Kw261Tc-55fSPY2_xwPAkSm5r6V2w5h5CggqL2A_f-cph2gXWOonRmV-7aCe8ktjV2acrGQMujmZYPWHgBDd4AEAIeiMeEeqv-Rk8.ISm5ttdJP0FP5wGWyo6O7A.mc_8jwgGZpVBCRsDm0hHgg' | ||
}, | ||
vendor: 'Inbound Verbose' | ||
}, | ||
|
@@ -463,6 +464,7 @@ describe('v4', () => { | |
result: { | ||
language_approved: true, | ||
success: true, | ||
form_submitted: true, | ||
one_to_one: true | ||
} | ||
} | ||
|
@@ -489,6 +491,7 @@ describe('v4', () => { | |
latitude: 30.2627, | ||
longitude: -97.7467, | ||
masked_cert_url: 'https://cert.trustedform-dev.com/f1fd052c43f08078a37d840b243daa69a35e8eda', | ||
share_url: 'https://cert.trustedform-dev.com/1eb8608bdf5b3bc42bb1e33cb0ed57a4bab643ef?shared_token=k6Kw261Tc-55fSPY2_xwPAkSm5r6V2w5h5CggqL2A_f-cph2gXWOonRmV-7aCe8ktjV2acrGQMujmZYPWHgBDd4AEAIeiMeEeqv-Rk8.ISm5ttdJP0FP5wGWyo6O7A.mc_8jwgGZpVBCRsDm0hHgg', | ||
matched_email: '[email protected]', | ||
os_full: 'Mac OS X 10.15', | ||
os_name: 'Mac OS X', | ||
|
@@ -514,6 +517,7 @@ describe('v4', () => { | |
verify: { | ||
languages: ['I understand that the TrustedForm certificate is sent to the email address I provided above and I will receive product updates as they are released.'], | ||
language_approved: true, | ||
form_submitted: true, | ||
success: true | ||
} | ||
}; | ||
|
@@ -581,9 +585,9 @@ describe('v4', () => { | |
const expected = { | ||
verify: { | ||
languages: ['By clicking on the "Get Rates" button below, I consent to be contacted'], | ||
language_approved: false, | ||
language_approved: false, | ||
success: false | ||
}, | ||
}, | ||
outcome: 'failure', | ||
reason: 'Consent language not detected in the certificate.', | ||
}; | ||
|