File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ describe('createStore', () => {
287
287
expect ( listenerC . mock . calls . length ) . toBe ( 2 )
288
288
} )
289
289
290
- it ( 'delays unsubscribe until the end of current dispatch ' , ( ) => {
290
+ it ( 'notifies all subscribers about current dispatch regardless if any of them gets unsubscribed in the process ' , ( ) => {
291
291
const store = createStore ( reducers . todos )
292
292
293
293
const unsubscribeHandles = [ ]
@@ -317,7 +317,7 @@ describe('createStore', () => {
317
317
expect ( listener3 . mock . calls . length ) . toBe ( 1 )
318
318
} )
319
319
320
- it ( 'delays subscribe until the end of current dispatch' , ( ) => {
320
+ it ( 'notifies only subscribers active at the moment of current dispatch' , ( ) => {
321
321
const store = createStore ( reducers . todos )
322
322
323
323
const listener1 = jest . fn ( )
You can’t perform that action at this time.
0 commit comments