Skip to content
Snippets Groups Projects
Commit 1e647f7a authored by Giannis Kopanas's avatar Giannis Kopanas
Browse files

fix(components): fix test backend

parent 98e96ec6
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ const supertest = require('supertest')
const bodyParser = require('body-parser')
// mocks
jest.mock('./transport', () => ({ sendMail: jest.fn() }))
jest.mock('@pubsweet/component-send-email', () => ({ sendMail: jest.fn() }))
jest.mock('pubsweet-server/src/models/User', () => ({
find: jest.fn(() => ({ email: 'author@example.org' })),
}))
......@@ -31,7 +31,7 @@ jest.mock('pubsweet-server/src/helpers/authsome', () => ({
}))
const authsome = require('pubsweet-server/src/helpers/authsome')
const transport = require('./transport')
const transport = require('@pubsweet/component-send-email')
const component = require('./reviewBackend')
function makeApp() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment