mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Mocked mail to prevent errors in e2e test suite
refs: https://github.com/TryGhost/Toolbox/issues/389
This commit is contained in:
parent
47d9b4a51d
commit
5065950401
2 changed files with 7 additions and 1 deletions
|
@ -30,6 +30,7 @@ describe('Stats API', function () {
|
|||
|
||||
beforeEach(async function () {
|
||||
mockStripe();
|
||||
mockManager.mockMail();
|
||||
});
|
||||
|
||||
afterEach(async function () {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const statsService = require('../../../../core/server/services/stats');
|
||||
const {agentProvider, fixtureManager} = require('../../../utils/e2e-framework');
|
||||
const {agentProvider, fixtureManager, mockManager} = require('../../../utils/e2e-framework');
|
||||
const moment = require('moment');
|
||||
require('should');
|
||||
const nock = require('nock');
|
||||
|
@ -87,6 +87,11 @@ describe('MRR Stats Service', function () {
|
|||
agent = await agentProvider.getAdminAPIAgent();
|
||||
await fixtureManager.init();
|
||||
await agent.loginAsOwner();
|
||||
mockManager.mockMail();
|
||||
});
|
||||
|
||||
after(async function () {
|
||||
mockManager.restore();
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue