From cb055272e33a1fcfd4a520ceebcc38d3582b1927 Mon Sep 17 00:00:00 2001
From: Sebastian Mihalache <sebastian.mihalache@gmail.con>
Date: Tue, 22 May 2018 10:08:27 +0300
Subject: [PATCH] feat(component-manuscript-manager): fix tests

---
 .../src/tests/fragmentsRecommendations/patch.test.js           | 2 +-
 .../src/tests/fragmentsRecommendations/post.test.js            | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/packages/component-manuscript-manager/src/tests/fragmentsRecommendations/patch.test.js b/packages/component-manuscript-manager/src/tests/fragmentsRecommendations/patch.test.js
index e40ac70a0..0e3c8013b 100644
--- a/packages/component-manuscript-manager/src/tests/fragmentsRecommendations/patch.test.js
+++ b/packages/component-manuscript-manager/src/tests/fragmentsRecommendations/patch.test.js
@@ -8,7 +8,7 @@ const cloneDeep = require('lodash/cloneDeep')
 const requests = require('./../helpers/requests')
 
 jest.mock('pubsweet-component-mail-service', () => ({
-  setupReviewSubmittedEmail: jest.fn(),
+  sendNotificationEmail: jest.fn(),
 }))
 const chance = new Chance()
 const reqBody = {
diff --git a/packages/component-manuscript-manager/src/tests/fragmentsRecommendations/post.test.js b/packages/component-manuscript-manager/src/tests/fragmentsRecommendations/post.test.js
index 03a9efdc3..364448eb2 100644
--- a/packages/component-manuscript-manager/src/tests/fragmentsRecommendations/post.test.js
+++ b/packages/component-manuscript-manager/src/tests/fragmentsRecommendations/post.test.js
@@ -8,6 +8,9 @@ const cloneDeep = require('lodash/cloneDeep')
 const requests = require('./../helpers/requests')
 
 const chance = new Chance()
+jest.mock('pubsweet-component-mail-service', () => ({
+  sendNotificationEmail: jest.fn(),
+}))
 const reqBody = {
   recommendation: 'accept',
   comments: [
-- 
GitLab