|
|
@ -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],
|
|
|
|