fix tests

This commit is contained in:
Hongbo Wu
2023-10-10 10:20:13 +08:00
parent bab343c41f
commit f5205c4b1b

View File

@ -16,7 +16,9 @@ describe('/article/save API', () => {
// We need to mock the pupeeteer-parse
// service here because in dev mode the task gets
// called immediately.
nock(env.queue.contentFetchUrl).post('/').reply(200)
if (env.queue.contentFetchUrl) {
nock(env.queue.contentFetchUrl).post('/').reply(200)
}
before(async () => {
// create test user and login