mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
throw error if MailDev doesn't run
also allow calling in multiple file
This commit is contained in:
parent
8fc58cb580
commit
af37210c0b
4 changed files with 76 additions and 19 deletions
|
@ -7,7 +7,7 @@ import {
|
|||
userLogin, login, runServer, ServerInfo, verifyEmail, updateCustomSubConfig
|
||||
} from '../../../../shared/utils'
|
||||
import { setAccessTokensToServers } from '../../../../shared/utils/users/login'
|
||||
import { mockSmtpServer } from '../../../../shared/utils/miscs/email'
|
||||
import { MockSmtpServer } from '../../../../shared/utils/miscs/email'
|
||||
import { waitJobs } from '../../../../shared/utils/server/jobs'
|
||||
|
||||
const expect = chai.expect
|
||||
|
@ -30,7 +30,7 @@ describe('Test users account verification', function () {
|
|||
before(async function () {
|
||||
this.timeout(30000)
|
||||
|
||||
await mockSmtpServer(emails)
|
||||
await MockSmtpServer.Instance.collectEmails(emails)
|
||||
|
||||
await flushTests()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue