mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Make external hooks type-safe, and add tests (#12893)
This commit is contained in:
committed by
GitHub
parent
3d27a14987
commit
05b5f95331
@@ -76,10 +76,7 @@ describe('init()', () => {
|
||||
it('should call external hook', async () => {
|
||||
await activeWorkflowManager.init();
|
||||
|
||||
const [hook, arg] = externalHooks.run.mock.calls[0];
|
||||
|
||||
expect(hook).toBe('activeWorkflows.initialized');
|
||||
expect(arg).toBeEmptyArray();
|
||||
expect(externalHooks.run).toHaveBeenCalledWith('activeWorkflows.initialized');
|
||||
});
|
||||
|
||||
it('should check that workflow can be activated', async () => {
|
||||
|
||||
Reference in New Issue
Block a user