mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-27 17:11:14 +01:00
test: add mising email.test tpls
This commit is contained in:
@@ -244,7 +244,6 @@ describe('socket.io', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('validation emails', () => {
|
describe('validation emails', () => {
|
||||||
const meta = require('../src/meta');
|
|
||||||
const plugins = require('../src/plugins');
|
const plugins = require('../src/plugins');
|
||||||
|
|
||||||
async function dummyEmailerHook(data) {
|
async function dummyEmailerHook(data) {
|
||||||
@@ -567,11 +566,16 @@ describe('socket.io', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should send test email', (done) => {
|
it('should send test email', async () => {
|
||||||
socketAdmin.email.test({ uid: adminUid }, { template: 'digest.tpl' }, (err) => {
|
const tpls = ['digest', 'test', 'verify', 'welcome', 'notification', 'invitation'];
|
||||||
|
try {
|
||||||
|
for (const tpl of tpls) {
|
||||||
|
// eslint-disable-next-line no-await-in-loop
|
||||||
|
await socketAdmin.email.test({ uid: adminUid }, { template: tpl });
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
done();
|
}
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not error when resending digests', async () => {
|
it('should not error when resending digests', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user