diff --git a/lib/trustedform.js b/lib/trustedform.js index eb08e5a..1559a6e 100644 --- a/lib/trustedform.js +++ b/lib/trustedform.js @@ -257,7 +257,7 @@ response.variables = () => [ { name: 'page_url', type: 'string', description: 'The URL of the page hosting TrustedForm Certify.' }, { name: 'parent_page_url', type: 'string', description: 'The parent URL of the page hosting TrustedForm Certify, if framed.' }, { name: 'verify.languages', type: 'array', description: 'A list of the consent languages detected within the certificate' }, - { name: 'verify.language_approved', type: 'string', description: 'A boolean indicating if any of the consent languages found have been approved in your account\'s consent language manager.' }, + { name: 'verify.language_approved', type: 'boolean', description: 'A boolean indicating if any of the consent languages found have been approved in your account\'s consent language manager.' }, { name: 'verify.success', type: 'boolean', description: 'A boolean indicating if any of the consent languages found meet the success criteria defined for your account.' }, ]; diff --git a/test/trustedform_spec.js b/test/trustedform_spec.js index d740d2d..7f0f927 100644 --- a/test/trustedform_spec.js +++ b/test/trustedform_spec.js @@ -545,11 +545,7 @@ describe('v4', () => { status: 200, body: JSON.stringify({ 'verify': { - 'languages': [ - { - 'text': 'By clicking on the "Get Rates" button below, I consent to be contacted' - } - ], + 'languages': [{'text': 'By clicking on the "Get Rates" button below, I consent to be contacted'}], 'result': { 'language_approved': false, 'success': false