fix tests
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user