From c4c181fc5213009ff293725d0668cbcb62806087 Mon Sep 17 00:00:00 2001 From: wswoodruff Date: Mon, 27 Jul 2020 16:21:40 -0400 Subject: [PATCH] Improve test var naming --- test/actions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/actions.js b/test/actions.js index e8f8336..af536b7 100644 --- a/test/actions.js +++ b/test/actions.js @@ -107,16 +107,16 @@ describe('Actions', () => { expect(results).to.equal([null, { id: 1 }]); // Extra check for special case — single array arg - const arrayResults = await store.dispatch(actionX([{ id: 3 }, { id: 4 }])); + const arrayResults = await store.dispatch(actionX([{ id: 2 }, { id: 3 }])); expect(store.getState()).to.equal([ { type: X.BEGIN, payload: { id: 1 }, meta: { index: null } }, { type: X.SUCCESS, payload: { id: 1 }, meta: { index: null, original: { id: 1 } } }, - { type: X.BEGIN, payload: [[{ id: 3 }, { id: 4 }]], meta: { index: null } }, - { type: X.SUCCESS, payload: [[{ id: 3 }, { id: 4 }]], meta: { index: null, original: [[{ id: 3 }, { id: 4 }]] } } + { type: X.BEGIN, payload: [[{ id: 2 }, { id: 3 }]], meta: { index: null } }, + { type: X.SUCCESS, payload: [[{ id: 2 }, { id: 3 }]], meta: { index: null, original: [[{ id: 2 }, { id: 3 }]] } } ]); - expect(arrayResults).to.equal([null, [[{ id: 3 }, { id: 4 }]]]); + expect(arrayResults).to.equal([null, [[{ id: 2 }, { id: 3 }]]]); }); it('creates an async action with a handler that succeeds.', async () => {