mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
test: fix email config case
This commit is contained in:
+4
-4
@@ -32,8 +32,8 @@ describe('config', () => {
|
||||
});
|
||||
|
||||
it('email config', async () => {
|
||||
process.env['EMAIL_CONFIG_xx@qq.com'] = 'token1';
|
||||
process.env['EMAIL_CONFIG_oo@qq.com'] = 'token2';
|
||||
process.env['EMAIL_CONFIG_xx.qq.com'] = 'token1';
|
||||
process.env['EMAIL_CONFIG_oo.qq.com'] = 'token2';
|
||||
|
||||
const config = require('../lib/config');
|
||||
expect(config.email.config).toMatchObject({
|
||||
@@ -41,7 +41,7 @@ describe('config', () => {
|
||||
'oo@qq.com': 'token2',
|
||||
});
|
||||
|
||||
delete process.env['EMAIL_CONFIG_xx@qq.com'];
|
||||
delete process.env['EMAIL_CONFIG_oo@qq.com'];
|
||||
delete process.env['EMAIL_CONFIG_xx.qq.com'];
|
||||
delete process.env['EMAIL_CONFIG_oo.qq.com'];
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user