mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed names of tests for Portal honeypot field
ref KTLO-1
This commit is contained in:
parent
0a9d2fadba
commit
56a9fa34af
1 changed files with 4 additions and 4 deletions
|
@ -422,17 +422,17 @@ describe('RouterController', function () {
|
|||
it('Sends emails when honeypot is not filled', async function () {
|
||||
const controller = createRouterController();
|
||||
|
||||
req.body.honeypot = 'filled!';
|
||||
|
||||
await controller.sendMagicLink(req, res).should.be.fulfilled();
|
||||
sendEmailWithMagicLinkStub.notCalled.should.be.true();
|
||||
sendEmailWithMagicLinkStub.calledOnce.should.be.true();
|
||||
});
|
||||
|
||||
it('Does not send emails when honeypot is filled', async function () {
|
||||
const controller = createRouterController();
|
||||
|
||||
req.body.honeypot = 'filled!';
|
||||
|
||||
await controller.sendMagicLink(req, res).should.be.fulfilled();
|
||||
sendEmailWithMagicLinkStub.calledOnce.should.be.true();
|
||||
sendEmailWithMagicLinkStub.notCalled.should.be.true();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue