mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Emitter emits event in the meta (#14203)
* Emitter emits event in the meta * Update unit test
This commit is contained in:
@@ -57,10 +57,10 @@ describe('cli hooks', () => {
|
||||
const program = await setup();
|
||||
|
||||
expect(beforeHook).toHaveBeenCalledTimes(1);
|
||||
expect(beforeHook).toHaveBeenCalledWith({ program });
|
||||
expect(beforeHook).toHaveBeenCalledWith({ event: 'cli.before', program });
|
||||
|
||||
expect(afterHook).toHaveBeenCalledTimes(1);
|
||||
expect(afterHook).toHaveBeenCalledWith({ program });
|
||||
expect(afterHook).toHaveBeenCalledWith({ event: 'cli.after', program });
|
||||
});
|
||||
|
||||
test('should be able to add a custom cli command', async () => {
|
||||
|
||||
Reference in New Issue
Block a user