mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
90c9a03319
refs https://github.com/TryGhost/Team/issues/2253 refs https://github.com/TryGhost/Team/issues/2254 This package is analogous to the @tryghost/member-events package. The events here will be consumed by the EmailSuppressionList implementation and used to add emails to said list. They'll be dispatched by the code which handles events received from Mailgun.
16 lines
542 B
JavaScript
16 lines
542 B
JavaScript
const assert = require('assert');
|
|
const ObjectID = require('bson-objectid').default;
|
|
const EmailBouncedEvent = require('../../lib/EmailBouncedEvent');
|
|
|
|
describe('EmailBouncedEvent', function () {
|
|
it('exports a static create method to create instances', function () {
|
|
const event = EmailBouncedEvent.create({
|
|
email: 'test@test.test',
|
|
memberId: new ObjectID(),
|
|
emailId: new ObjectID(),
|
|
timestamp: new Date()
|
|
});
|
|
assert(event instanceof EmailBouncedEvent);
|
|
});
|
|
});
|