mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 09:53:32 +03:00
ffa101b550
refs https://github.com/TryGhost/Arch/issues/16 - This package is meant to hold Domain Events associated with Post model/entity. The very first one here is PostsBulkDestroyedEvent needed to signal bulk destroy action completion from the posts service.
11 lines
339 B
TypeScript
11 lines
339 B
TypeScript
import assert from 'assert/strict';
|
|
import {PostsBulkDestroyedEvent} from '../src/index';
|
|
|
|
describe('Post Events', function () {
|
|
it('Can instantiate BulkDestroyEvent', function () {
|
|
const event = PostsBulkDestroyedEvent.create(['1', '2', '3']);
|
|
assert.ok(event);
|
|
assert.equal(event.data.length, 3);
|
|
});
|
|
});
|