0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Fixed verification trigger test

no issue
This commit is contained in:
Sam Lord 2022-02-04 12:03:59 +00:00
parent 20a37bdcd6
commit 865b77b115

View file

@ -165,7 +165,7 @@ describe('Email verification flow', function () {
}
}
});
new VerificationTrigger({
configThreshold: 2,
Settings: {
@ -187,7 +187,7 @@ describe('Email verification flow', function () {
eventStub.callCount.should.eql(1);
eventStub.lastCall.lastArg.should.have.property('data.source');
eventStub.lastCall.lastArg.should.have.property('data.created_at');
eventStub.lastCall.lastArg['data.source'].should.eql('data.source:api');
eventStub.lastCall.lastArg['data.created_at'].should.startWith('data.created_at:>');
eventStub.lastCall.lastArg['data.source'].should.eql(`data.source:'api'`);
eventStub.lastCall.lastArg['data.created_at'].should.startWith(`data.created_at:>'`);
});
});
});