-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #521 from edx/trhodes/fix-email-validation
fix: license reminder email doesn't need subject
- Loading branch information
Showing
3 changed files
with
10 additions
and
3 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 |
---|---|---|
|
@@ -160,6 +160,13 @@ describe('email validation', () => { | |
formData[EMAIL_TEMPLATE_SUBJECT_KEY] = 'Subject'; | ||
expect(validateEmailTemplateForm(formData, templateKey)).toBeUndefined(); | ||
}); | ||
|
||
it('returns nothing on successful validation (and no subject is required)', () => { | ||
const formData = new FormData(); | ||
formData[EMAIL_ADDRESS_CSV_FORM_DATA] = ['[email protected]', '[email protected]']; | ||
formData[templateKey] = 'Template 1'; | ||
expect(validateEmailTemplateForm(formData, templateKey, false)).toBeUndefined(); | ||
}); | ||
}); | ||
|
||
describe('validate email address and template form', () => { | ||
|