test: add email

isekai-main
Barış Soner Uşaklı 2 years ago
parent 1f03d41471
commit 4bfebc8123

@ -1493,7 +1493,7 @@ describe('User', () => {
it('should send digests', async () => { it('should send digests', async () => {
const oldValue = meta.config.includeUnverifiedEmails; const oldValue = meta.config.includeUnverifiedEmails;
meta.config.includeUnverifiedEmails = true; meta.config.includeUnverifiedEmails = true;
const uid = await User.create({ username: 'digest' }); const uid = await User.create({ username: 'digest', email: 'email@test.com' });
await User.digest.execute({ await User.digest.execute({
interval: 'day', interval: 'day',
subscribers: [uid], subscribers: [uid],

Loading…
Cancel
Save