-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2b771a
commit 43b750b
Showing
5 changed files
with
0 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ describe('contact form service', () => { | |
primary: true, | ||
full_telephone_number: '+1 652423467167', | ||
email: '[email protected]', | ||
accepts_dit_email_marketing: true, | ||
address_same_as_company: false, | ||
notes: 'Some notes', | ||
archived_by: null, | ||
|
@@ -60,7 +59,6 @@ describe('contact form service', () => { | |
primary: 'yes', | ||
full_telephone_number: '+1 652423467167', | ||
email: '[email protected]', | ||
accepts_dit_email_marketing: true, | ||
address_same_as_company: 'no', | ||
address_1: '99 N Shore Road', | ||
address_2: 'Suite 20', | ||
|
@@ -107,7 +105,6 @@ describe('contact form service', () => { | |
address_postcode: null, | ||
address_country: null, | ||
notes: 'Some notes', | ||
accepts_dit_email_marketing: true, | ||
} | ||
|
||
const actual = contactFormService.getContactAsFormData(contact) | ||
|
@@ -118,15 +115,5 @@ describe('contact form service', () => { | |
it('should handle a null contact', () => { | ||
expect(contactFormService.getContactAsFormData(null)).to.be.null | ||
}) | ||
|
||
context('when the contact accepts DBT email marketing', () => { | ||
it('should set the marketing preferences to accepts_dit_email_marketing', () => { | ||
const contact = assign({}, contactData, { | ||
accepts_dit_email_marketing: true, | ||
}) | ||
const actual = contactFormService.getContactAsFormData(contact) | ||
expect(actual.accepts_dit_email_marketing).to.be.true | ||
}) | ||
}) | ||
}) | ||
}) |
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 |
---|---|---|
|
@@ -54,7 +54,6 @@ describe('Contacts', () => { | |
'Phone number': '44 0778877778800', | ||
Address: '100 Path, A town, 12345, United States', | ||
Email: '[email protected]', | ||
'Email marketing': 'Cannot be marketed to', | ||
}) | ||
}) | ||
|
||
|
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