[UT] 修改UT运行结果, reduxAdapter与redux保持一致

This commit is contained in:
huangxuan 2023-11-30 16:20:14 +08:00
parent c2c794e023
commit 3a30f6ce59
No known key found for this signature in database
GPG Key ID: E79F50C67022565D
1 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ describe('Redux adapter', () => {
reduxStore.dispatch({ type: 'toggle' });
reduxStore.dispatch({ type: 'toggle' });
expect(counter).toBe(3); // NOTE: first action is always store initialization
expect(counter).toBe(2); // execute dispatch two times, applyMiddleware was called same times
});
it('Should apply multiple enhancers', async () => {
@ -226,7 +226,7 @@ describe('Redux adapter', () => {
reduxStore.dispatch({ type: 'toggle' });
expect(counter).toBe(2); // NOTE: first action is always store initialization
expect(counter).toBe(1); // execute dispatch two times, applyMiddleware was called same times
expect(lastAction).toBe('toggle');
expect(middlewareCallList[0]).toBe('callCounter');
expect(middlewareCallList[1]).toBe('lastFunctionStorage');