fix: flow model test error

This commit is contained in:
gchust
2025-10-13 09:12:07 +08:00
parent fa25d63b8b
commit 5232dfcf28
@@ -705,7 +705,7 @@ describe('FlowModel', () => {
TestFlowModelWithHooks.registerFlow(errorFlow);
const modelWithHooks = new TestFlowModelWithHooks(modelOptions);
await modelWithHooks.dispatchEvent('beforeRender');
await expect(modelWithHooks.dispatchEvent('beforeRender')).rejects.toThrow('Test error');
// Verify hooks were called (error path)
expect(beforeHookSpy).toHaveBeenCalledTimes(1);
expect(afterHookSpy).not.toHaveBeenCalled();