-
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.
update email service send to include subject (#122)
- Loading branch information
1 parent
8def261
commit 99837bd
Showing
7 changed files
with
68 additions
and
23 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 |
---|---|---|
|
@@ -182,6 +182,7 @@ describe('Email Sending Route', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
}) | ||
.expect(401); | ||
}); | ||
|
@@ -194,6 +195,7 @@ describe('Email Sending Route', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
}) | ||
.expect(401); | ||
}); | ||
|
@@ -205,6 +207,7 @@ describe('Email Sending Route', () => { | |
.send({ | ||
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
subject: 'Test email', | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
}) | ||
.expect(201); | ||
|
@@ -219,6 +222,7 @@ describe('Email Sending Route', () => { | |
recipients: [ | ||
{ email: '[email protected]', name: 'RecipientName' }, | ||
], | ||
subject: 'Test email', | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
}) | ||
.expect(201); | ||
|
@@ -234,6 +238,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
}) | ||
.expect(201); | ||
|
@@ -249,6 +254,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -268,6 +274,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
cc: [{ email: '[email protected]', name: 'RecipientName1' }], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -287,6 +294,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
bcc: [{ email: '[email protected]', name: 'RecipientName1' }], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -313,6 +321,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -331,6 +340,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -349,6 +359,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -367,6 +378,7 @@ describe('Email Sending Route', () => { | |
{ email: '', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -385,6 +397,7 @@ describe('Email Sending Route', () => { | |
{ email: 'invalid-email', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -403,6 +416,7 @@ describe('Email Sending Route', () => { | |
{ email: null, name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -421,6 +435,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: '', value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -439,6 +454,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: null, value: 'Test email' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -457,6 +473,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: '' }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
@@ -475,6 +492,7 @@ describe('Email Sending Route', () => { | |
{ email: '[email protected]', name: 'RecipientName1' }, | ||
{ email: '[email protected]', name: 'RecipientName2' }, | ||
], | ||
subject: 'Test email', | ||
content: [ | ||
{ type: 'text/plain', value: null }, | ||
{ type: 'text/plain', value: 'Test email' }, | ||
|
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 |
---|---|---|
|
@@ -144,6 +144,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -163,6 +164,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: null, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -182,6 +184,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: null }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -201,6 +204,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -220,6 +224,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: null, | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -239,6 +244,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [], | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -258,6 +264,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: null }], | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -277,6 +284,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '' }], | ||
content: [{ type: 'text/plain', value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -296,6 +304,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: null, | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -315,6 +324,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -334,6 +344,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: null, value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -353,6 +364,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: 'text/plain', value: null }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -372,6 +384,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: '', value: 'Test email' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
@@ -391,6 +404,7 @@ describe('Email Service Send Email Tests', () => { | |
sender: { email: '[email protected]' }, | ||
recipients: [{ email: '[email protected]' }], | ||
content: [{ type: 'text/plain', value: '' }], | ||
subject: 'Test email', | ||
configId: 0, | ||
configEnvironment: 'prod', | ||
}, | ||
|
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