mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Moved mailService stub closer to it's usecase
This commit is contained in:
parent
dae69072f6
commit
27523e2ed7
1 changed files with 8 additions and 8 deletions
|
@ -12,14 +12,6 @@ let request;
|
|||
describe.only('Authentication API v2', function () {
|
||||
let ghostServer;
|
||||
|
||||
beforeEach(function () {
|
||||
sinon.stub(mailService.GhostMailer.prototype, 'send').resolves('Mail is disabled');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
sinon.restore();
|
||||
});
|
||||
|
||||
describe('Blog setup', function () {
|
||||
before(function () {
|
||||
return ghost({forceStart: true})
|
||||
|
@ -29,6 +21,14 @@ describe.only('Authentication API v2', function () {
|
|||
});
|
||||
});
|
||||
|
||||
beforeEach(function () {
|
||||
sinon.stub(mailService.GhostMailer.prototype, 'send').resolves('Mail is disabled');
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
sinon.restore();
|
||||
});
|
||||
|
||||
it('is setup? no', function () {
|
||||
return request
|
||||
.get(localUtils.API.getApiQuery('authentication/setup'))
|
||||
|
|
Loading…
Add table
Reference in a new issue