Skip to content

Commit 887bf07

Browse files
Andaristtimdorr
authored andcommitted
Provides correct test descriptions for 2 of the tests (reduxjs#2513)
1 parent a894175 commit 887bf07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/createStore.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ describe('createStore', () => {
287287
expect(listenerC.mock.calls.length).toBe(2)
288288
})
289289

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', () => {
291291
const store = createStore(reducers.todos)
292292

293293
const unsubscribeHandles = []
@@ -317,7 +317,7 @@ describe('createStore', () => {
317317
expect(listener3.mock.calls.length).toBe(1)
318318
})
319319

320-
it('delays subscribe until the end of current dispatch', () => {
320+
it('notifies only subscribers active at the moment of current dispatch', () => {
321321
const store = createStore(reducers.todos)
322322

323323
const listener1 = jest.fn()

0 commit comments

Comments
 (0)