refactored mailer service with lodash!

This commit is contained in:
Wyatt Johnson
2018-01-08 10:43:10 -07:00
parent ec852601a4
commit 615be40b45
5 changed files with 28 additions and 36 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
const UsersService = require('../../../services/users');
const SettingsService = require('../../../services/settings');
const MailerService = require('../../../services/mailer');
const mailer = require('../../../services/mailer');
const chai = require('chai');
chai.use(require('chai-as-promised'));
@@ -29,11 +29,11 @@ describe('services.UsersService', () => {
password: '3Coral!3'
}]);
sinon.spy(MailerService, 'send');
sinon.spy(mailer, 'send');
});
afterEach(() => {
MailerService.send.restore();
mailer.send.restore();
});
describe('#findById()', () => {