From a782c1e70f2ee749ed65539284898f1172a88c3c Mon Sep 17 00:00:00 2001 From: Frank Rousseau Date: Tue, 13 Dec 2022 17:07:42 +0100 Subject: [PATCH] [qa] Fix tests --- tests/unit/store/breakdown.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/store/breakdown.spec.js b/tests/unit/store/breakdown.spec.js index 6ec3a77fa5..e6380401ef 100644 --- a/tests/unit/store/breakdown.spec.js +++ b/tests/unit/store/breakdown.spec.js @@ -119,7 +119,8 @@ describe('Breakdown store', () => { shots: { shotMap, sequences } } rootGetters = { - currentProduction: production + currentProduction: production, + shotMap } breakdownApi.getSequenceCasting.mockImplementation( () => Promise.resolve({ 'shot-1': assetCasting }) @@ -133,7 +134,7 @@ describe('Breakdown store', () => { describe('Actions', () => { test('setCastingSequence', async () => { await store.actions.setCastingSequence( - { commit, rootState }, 'sequence-1' + { commit, rootState, rootGetters }, 'sequence-1' ) expect(vuexStore.state.castingSequenceId).toEqual('sequence-1') expect(vuexStore.state.castingSequenceShots).toEqual([shots[0]])