Skip to content

Commit

Permalink
[qa] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frankrousseau committed Dec 13, 2022
1 parent 3a42a79 commit a782c1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/store/breakdown.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ describe('Breakdown store', () => {
shots: { shotMap, sequences }
}
rootGetters = {
currentProduction: production
currentProduction: production,
shotMap
}
breakdownApi.getSequenceCasting.mockImplementation(
() => Promise.resolve({ 'shot-1': assetCasting })
Expand All @@ -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]])
Expand Down

0 comments on commit a782c1e

Please sign in to comment.