Commit d46b2da
committed
test: call onConnect callback when subscribing
Invoke the onConnect callback immediately upon adding a new
subscription in fake-action-cable-consumer. This ensures that any
setup logic depending on connection confirmation runs promptly
during tests, improving test accuracy and behavior simulation.1 parent 100d070 commit d46b2da
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
0 commit comments