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:
parent
20a37bdcd6
commit
865b77b115
1 changed files with 4 additions and 4 deletions
|
@ -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:>'`);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue