-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* provide dof configured SC_CONTACT_MAIL to nuxt-client
- Loading branch information
1 parent
69ab7d6
commit 8718e92
Showing
5 changed files
with
19 additions
and
4 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
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 |
---|---|---|
|
@@ -1184,6 +1184,11 @@ | |
"default": "/login", | ||
"description": "Determines the url to be redirected to when the user is not authenticated" | ||
}, | ||
"SC_CONTACT_EMAIL": { | ||
"type": "string", | ||
"default": "[email protected]", | ||
"description": "Email address used for contacting" | ||
}, | ||
"ACCESSIBILITY_REPORT_EMAIL": { | ||
"type": "string", | ||
"default": "[email protected]", | ||
|
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 |
---|---|---|
|
@@ -135,9 +135,9 @@ describe('helpdesk service', function test() { | |
const mailService = new MockMailService(); | ||
app.use('/mails', mailService); | ||
const tempScTheme = Configuration.get('SUPPORT_PROBLEM_EMAIL_ADDRESS'); | ||
Configuration.set('SUPPORT_PROBLEM_EMAIL_ADDRESS', '[email protected]'); | ||
Configuration.set('SUPPORT_PROBLEM_EMAIL_ADDRESS', '[email protected]'); | ||
await helpdeskService.create(postBody, { account: { userId: '0000d213816abba584714c0a' } }); | ||
expect(mailService.create.firstArg.email).to.equal('[email protected]'); | ||
expect(mailService.create.firstArg.email).to.equal('[email protected]'); | ||
Configuration.set('SUPPORT_PROBLEM_EMAIL_ADDRESS', tempScTheme); | ||
}); | ||
|
||
|
@@ -169,10 +169,13 @@ describe('helpdesk service', function test() { | |
const mailService = new MockMailService(); | ||
app.use('/mails', mailService); | ||
const tempScTheme = Configuration.get('SUPPORT_WISH_EMAIL_ADDRESS'); | ||
Configuration.set('SUPPORT_WISH_EMAIL_ADDRESS', '[email protected],[email protected]'); | ||
Configuration.set( | ||
'SUPPORT_WISH_EMAIL_ADDRESS', | ||
'[email protected],[email protected]' | ||
); | ||
await helpdeskService.create(postBody, { account: { userId: '0000d213816abba584714c0a' } }); | ||
expect(mailService.create.args.length).to.equal(2); | ||
expect(mailService.create.args[0][0].email).to.equal('[email protected]'); | ||
expect(mailService.create.args[0][0].email).to.equal('[email protected]'); | ||
expect(mailService.create.args[1][0].email).to.equal('[email protected]'); | ||
Configuration.set('SUPPORT_WISH_EMAIL_ADDRESS', tempScTheme); | ||
}); | ||
|