File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/signals/signals/src/core/emitter/__tests__ Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -338,11 +338,11 @@ describe(SignalEmitter, () => {
338338
339339 expect ( loadSpy1 ) . toHaveBeenCalledTimes ( 1 )
340340 expect ( processSpy1 ) . toHaveBeenCalledWith ( mockSignal )
341-
342- // Subscriber 2 has an async load method, but it should not block the processing of signals for subscriber 1
341+ // Subscriber 1 loads immediately and Subscriber 2 takes a while, but they shouldn't block eachother
343342 expect ( loadSpy2 ) . toHaveBeenCalledTimes ( 1 )
344343 expect ( processSpy2 ) . not . toHaveBeenCalled ( )
345344
345+ // Subscriber 2's load method should be resolved, so it should process the signal
346346 await sleep ( 50 )
347347 expect ( processSpy2 ) . toHaveBeenCalledTimes ( 1 )
348348 } )
You can’t perform that action at this time.
0 commit comments