From 116241a857b8c7ce31808b18cabdf8714961f4e9 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 23 Aug 2019 18:59:55 +0800 Subject: [PATCH] test: fix email config case --- test/config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/config.js b/test/config.js index 582cb945ee..313c2648e3 100644 --- a/test/config.js +++ b/test/config.js @@ -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']; }); });