diff --git a/core/test/regression/api/v2/admin/authentication_spec.js b/core/test/regression/api/v2/admin/authentication_spec.js index 95fb5dd678..938e2daad1 100644 --- a/core/test/regression/api/v2/admin/authentication_spec.js +++ b/core/test/regression/api/v2/admin/authentication_spec.js @@ -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'))